Clone of mbed rtos 2 for easy accessibility.
Fork of mbed-rtos by
rtx/TARGET_CORTEX_M/RTX_Config.h@125:5713cbbdb706, 2017-07-04 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
c1728p9 | 123:58563e6cba1e | 1 | |
c1728p9 | 123:58563e6cba1e | 2 | /** \addtogroup rtos */ |
c1728p9 | 123:58563e6cba1e | 3 | /** @{*/ |
mbed_official | 112:53ace74b190c | 4 | /*---------------------------------------------------------------------------- |
mbed_official | 112:53ace74b190c | 5 | * CMSIS-RTOS - RTX |
mbed_official | 112:53ace74b190c | 6 | *---------------------------------------------------------------------------- |
mbed_official | 112:53ace74b190c | 7 | * Name: RTX_CONFIG.H |
mbed_official | 112:53ace74b190c | 8 | * Purpose: Exported functions of RTX_Config.c |
mbed_official | 112:53ace74b190c | 9 | * Rev.: V4.79 |
mbed_official | 112:53ace74b190c | 10 | *---------------------------------------------------------------------------- |
mbed_official | 112:53ace74b190c | 11 | * |
mbed_official | 112:53ace74b190c | 12 | * Copyright (c) 1999-2009 KEIL, 2009-2015 ARM Germany GmbH |
mbed_official | 112:53ace74b190c | 13 | * All rights reserved. |
mbed_official | 112:53ace74b190c | 14 | * Redistribution and use in source and binary forms, with or without |
mbed_official | 112:53ace74b190c | 15 | * modification, are permitted provided that the following conditions are met: |
mbed_official | 112:53ace74b190c | 16 | * - Redistributions of source code must retain the above copyright |
mbed_official | 112:53ace74b190c | 17 | * notice, this list of conditions and the following disclaimer. |
mbed_official | 112:53ace74b190c | 18 | * - Redistributions in binary form must reproduce the above copyright |
mbed_official | 112:53ace74b190c | 19 | * notice, this list of conditions and the following disclaimer in the |
mbed_official | 112:53ace74b190c | 20 | * documentation and/or other materials provided with the distribution. |
mbed_official | 112:53ace74b190c | 21 | * - Neither the name of ARM nor the names of its contributors may be used |
mbed_official | 112:53ace74b190c | 22 | * to endorse or promote products derived from this software without |
mbed_official | 112:53ace74b190c | 23 | * specific prior written permission. |
mbed_official | 112:53ace74b190c | 24 | * |
mbed_official | 112:53ace74b190c | 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 112:53ace74b190c | 26 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 112:53ace74b190c | 27 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
mbed_official | 112:53ace74b190c | 28 | * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE |
mbed_official | 112:53ace74b190c | 29 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
mbed_official | 112:53ace74b190c | 30 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
mbed_official | 112:53ace74b190c | 31 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
mbed_official | 112:53ace74b190c | 32 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
mbed_official | 112:53ace74b190c | 33 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
mbed_official | 112:53ace74b190c | 34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
mbed_official | 112:53ace74b190c | 35 | * POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 112:53ace74b190c | 36 | *---------------------------------------------------------------------------*/ |
mbed_official | 112:53ace74b190c | 37 | |
mbed_official | 112:53ace74b190c | 38 | |
mbed_official | 112:53ace74b190c | 39 | /* Error Codes */ |
mbed_official | 112:53ace74b190c | 40 | #define OS_ERR_STK_OVF 1U |
mbed_official | 112:53ace74b190c | 41 | #define OS_ERR_FIFO_OVF 2U |
mbed_official | 112:53ace74b190c | 42 | #define OS_ERR_MBX_OVF 3U |
mbed_official | 112:53ace74b190c | 43 | #define OS_ERR_TIMER_OVF 4U |
mbed_official | 112:53ace74b190c | 44 | |
mbed_official | 112:53ace74b190c | 45 | /* Definitions */ |
mbed_official | 112:53ace74b190c | 46 | #define BOX_ALIGN_8 0x80000000U |
mbed_official | 112:53ace74b190c | 47 | #define _declare_box(pool,size,cnt) U32 pool[(((size)+3)/4)*(cnt) + 3] |
mbed_official | 112:53ace74b190c | 48 | #define _declare_box8(pool,size,cnt) U64 pool[(((size)+7)/8)*(cnt) + 2] |
mbed_official | 112:53ace74b190c | 49 | #define _init_box8(pool,size,bsize) _init_box (pool,size,(bsize) | BOX_ALIGN_8) |
mbed_official | 112:53ace74b190c | 50 | |
mbed_official | 112:53ace74b190c | 51 | /* Variables */ |
mbed_official | 112:53ace74b190c | 52 | extern U32 mp_tcb[]; |
mbed_official | 112:53ace74b190c | 53 | extern U64 mp_stk[]; |
mbed_official | 112:53ace74b190c | 54 | extern U32 os_fifo[]; |
mbed_official | 112:53ace74b190c | 55 | extern void *os_active_TCB[]; |
mbed_official | 112:53ace74b190c | 56 | |
mbed_official | 112:53ace74b190c | 57 | /* Constants */ |
mbed_official | 112:53ace74b190c | 58 | extern U16 const os_maxtaskrun; |
mbed_official | 112:53ace74b190c | 59 | extern U32 const os_trv; |
mbed_official | 112:53ace74b190c | 60 | extern U8 const os_flags; |
mbed_official | 112:53ace74b190c | 61 | extern U32 const os_stackinfo; |
mbed_official | 112:53ace74b190c | 62 | extern U32 const os_rrobin; |
mbed_official | 112:53ace74b190c | 63 | extern U32 const os_clockrate; |
mbed_official | 112:53ace74b190c | 64 | extern U32 const os_timernum; |
mbed_official | 112:53ace74b190c | 65 | extern U16 const mp_tcb_size; |
mbed_official | 112:53ace74b190c | 66 | extern U32 const mp_stk_size; |
mbed_official | 112:53ace74b190c | 67 | extern U32 const *m_tmr; |
mbed_official | 112:53ace74b190c | 68 | extern U16 const mp_tmr_size; |
mbed_official | 112:53ace74b190c | 69 | extern U8 const os_fifo_size; |
mbed_official | 112:53ace74b190c | 70 | |
mbed_official | 112:53ace74b190c | 71 | /* Functions */ |
mbed_official | 112:53ace74b190c | 72 | extern void os_idle_demon (void); |
mbed_official | 112:53ace74b190c | 73 | extern S32 os_tick_init (void); |
mbed_official | 112:53ace74b190c | 74 | extern U32 os_tick_val (void); |
mbed_official | 112:53ace74b190c | 75 | extern U32 os_tick_ovf (void); |
mbed_official | 112:53ace74b190c | 76 | extern void os_tick_irqack (void); |
mbed_official | 112:53ace74b190c | 77 | extern void os_tmr_call (U16 info); |
mbed_official | 112:53ace74b190c | 78 | extern void os_error (U32 err_code); |
mbed_official | 112:53ace74b190c | 79 | |
mbed_official | 112:53ace74b190c | 80 | /*---------------------------------------------------------------------------- |
mbed_official | 112:53ace74b190c | 81 | * end of file |
mbed_official | 112:53ace74b190c | 82 | *---------------------------------------------------------------------------*/ |
c1728p9 | 123:58563e6cba1e | 83 | |
c1728p9 | 123:58563e6cba1e | 84 | /** @}*/ |