Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.

Dependents:   denki-yohou_b TestY201 Network-RTOS NTPClient_HelloWorld ... more

Deprecated

This is the mbed 2 rtos library. mbed OS 5 integrates the mbed library with mbed-rtos. With this, we have provided thread safety for all mbed APIs. If you'd like to learn about using mbed OS 5, please see the docs.

Committer:
Kojto
Date:
Tue Jul 04 13:32:20 2017 +0100
Revision:
125:5713cbbdb706
Parent:
123:58563e6cba1e
replace mbed_rtx by mbed_rtx4

Not causing a conflict with mbed_rtx that is for newer rtos

Who changed what in which revision?

UserRevisionLine numberNew contents of line
c1728p9 123:58563e6cba1e 1
c1728p9 123:58563e6cba1e 2 /** \addtogroup rtos */
c1728p9 123:58563e6cba1e 3 /** @{*/
mbed_official 49:77c8e4604045 4 /*----------------------------------------------------------------------------
mbed_official 112:53ace74b190c 5 * CMSIS-RTOS - RTX
mbed_official 49:77c8e4604045 6 *----------------------------------------------------------------------------
mbed_official 49:77c8e4604045 7 * Name: RT_LIST.H
mbed_official 49:77c8e4604045 8 * Purpose: Functions for the management of different lists
mbed_official 112:53ace74b190c 9 * Rev.: V4.79
mbed_official 49:77c8e4604045 10 *----------------------------------------------------------------------------
mbed_official 49:77c8e4604045 11 *
mbed_official 112:53ace74b190c 12 * Copyright (c) 1999-2009 KEIL, 2009-2015 ARM Germany GmbH
mbed_official 49:77c8e4604045 13 * All rights reserved.
mbed_official 49:77c8e4604045 14 * Redistribution and use in source and binary forms, with or without
mbed_official 49:77c8e4604045 15 * modification, are permitted provided that the following conditions are met:
mbed_official 49:77c8e4604045 16 * - Redistributions of source code must retain the above copyright
mbed_official 49:77c8e4604045 17 * notice, this list of conditions and the following disclaimer.
mbed_official 49:77c8e4604045 18 * - Redistributions in binary form must reproduce the above copyright
mbed_official 49:77c8e4604045 19 * notice, this list of conditions and the following disclaimer in the
mbed_official 49:77c8e4604045 20 * documentation and/or other materials provided with the distribution.
mbed_official 49:77c8e4604045 21 * - Neither the name of ARM nor the names of its contributors may be used
mbed_official 49:77c8e4604045 22 * to endorse or promote products derived from this software without
mbed_official 49:77c8e4604045 23 * specific prior written permission.
mbed_official 49:77c8e4604045 24 *
mbed_official 49:77c8e4604045 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 49:77c8e4604045 26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 49:77c8e4604045 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
mbed_official 49:77c8e4604045 28 * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
mbed_official 49:77c8e4604045 29 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
mbed_official 49:77c8e4604045 30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
mbed_official 49:77c8e4604045 31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
mbed_official 49:77c8e4604045 32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
mbed_official 49:77c8e4604045 33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
mbed_official 49:77c8e4604045 34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
mbed_official 49:77c8e4604045 35 * POSSIBILITY OF SUCH DAMAGE.
mbed_official 49:77c8e4604045 36 *---------------------------------------------------------------------------*/
mbed_official 49:77c8e4604045 37
mbed_official 49:77c8e4604045 38 /* Definitions */
mbed_official 49:77c8e4604045 39
mbed_official 49:77c8e4604045 40 /* Values for 'cb_type' */
mbed_official 112:53ace74b190c 41 #define TCB 0U
mbed_official 112:53ace74b190c 42 #define MCB 1U
mbed_official 112:53ace74b190c 43 #define SCB 2U
mbed_official 112:53ace74b190c 44 #define MUCB 3U
mbed_official 112:53ace74b190c 45 #define HCB 4U
mbed_official 49:77c8e4604045 46
mbed_official 49:77c8e4604045 47 /* Variables */
mbed_official 49:77c8e4604045 48 extern struct OS_XCB os_rdy;
mbed_official 49:77c8e4604045 49 extern struct OS_XCB os_dly;
mbed_official 49:77c8e4604045 50
mbed_official 49:77c8e4604045 51 /* Functions */
mbed_official 49:77c8e4604045 52 extern void rt_put_prio (P_XCB p_CB, P_TCB p_task);
mbed_official 49:77c8e4604045 53 extern P_TCB rt_get_first (P_XCB p_CB);
mbed_official 49:77c8e4604045 54 extern void rt_put_rdy_first (P_TCB p_task);
mbed_official 49:77c8e4604045 55 extern P_TCB rt_get_same_rdy_prio (void);
mbed_official 49:77c8e4604045 56 extern void rt_resort_prio (P_TCB p_task);
mbed_official 49:77c8e4604045 57 extern void rt_put_dly (P_TCB p_task, U16 delay);
mbed_official 49:77c8e4604045 58 extern void rt_dec_dly (void);
mbed_official 49:77c8e4604045 59 extern void rt_rmv_list (P_TCB p_task);
mbed_official 49:77c8e4604045 60 extern void rt_rmv_dly (P_TCB p_task);
mbed_official 49:77c8e4604045 61 extern void rt_psq_enq (OS_ID entry, U32 arg);
mbed_official 49:77c8e4604045 62
mbed_official 49:77c8e4604045 63 /* This is a fast macro generating in-line code */
mbed_official 49:77c8e4604045 64 #define rt_rdy_prio(void) (os_rdy.p_lnk->prio)
mbed_official 49:77c8e4604045 65
mbed_official 49:77c8e4604045 66
mbed_official 49:77c8e4604045 67 /*----------------------------------------------------------------------------
mbed_official 49:77c8e4604045 68 * end of file
mbed_official 49:77c8e4604045 69 *---------------------------------------------------------------------------*/
mbed_official 49:77c8e4604045 70
c1728p9 123:58563e6cba1e 71
c1728p9 123:58563e6cba1e 72 /** @}*/