Fork of official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.
Dependents: Final_Coffee_Roaster
Fork of mbed-rtos by
rtx/RTX_Conf.h@43:aaa1b2c7c64c, 2014-10-06 (annotated)
- Committer:
- mbed_official
- Date:
- Mon Oct 06 10:00:12 2014 +0100
- Revision:
- 43:aaa1b2c7c64c
- Parent:
- 31:015df9e602b6
Synchronized with git revision b30176a071a49d95914b97d2ab98240f3a1e2cae
Full URL: https://github.com/mbedmicro/mbed/commit/b30176a071a49d95914b97d2ab98240f3a1e2cae/
Platform: LPC824 - new platform addition
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 6:350b53afb889 | 1 | /*---------------------------------------------------------------------------- |
emilmont | 6:350b53afb889 | 2 | * RL-ARM - RTX |
emilmont | 6:350b53afb889 | 3 | *---------------------------------------------------------------------------- |
emilmont | 6:350b53afb889 | 4 | * Name: RTX_CONFIG.H |
emilmont | 6:350b53afb889 | 5 | * Purpose: Exported functions of RTX_Config.c |
emilmont | 6:350b53afb889 | 6 | * Rev.: V4.60 |
emilmont | 6:350b53afb889 | 7 | *---------------------------------------------------------------------------- |
emilmont | 6:350b53afb889 | 8 | * |
emilmont | 6:350b53afb889 | 9 | * Copyright (c) 1999-2009 KEIL, 2009-2012 ARM Germany GmbH |
emilmont | 6:350b53afb889 | 10 | * All rights reserved. |
emilmont | 6:350b53afb889 | 11 | * Redistribution and use in source and binary forms, with or without |
emilmont | 6:350b53afb889 | 12 | * modification, are permitted provided that the following conditions are met: |
emilmont | 6:350b53afb889 | 13 | * - Redistributions of source code must retain the above copyright |
emilmont | 6:350b53afb889 | 14 | * notice, this list of conditions and the following disclaimer. |
emilmont | 6:350b53afb889 | 15 | * - Redistributions in binary form must reproduce the above copyright |
emilmont | 6:350b53afb889 | 16 | * notice, this list of conditions and the following disclaimer in the |
emilmont | 6:350b53afb889 | 17 | * documentation and/or other materials provided with the distribution. |
mbed_official | 31:015df9e602b6 | 18 | * - Neither the name of ARM nor the names of its contributors may be used |
mbed_official | 31:015df9e602b6 | 19 | * to endorse or promote products derived from this software without |
emilmont | 6:350b53afb889 | 20 | * specific prior written permission. |
emilmont | 6:350b53afb889 | 21 | * |
mbed_official | 31:015df9e602b6 | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 31:015df9e602b6 | 23 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
emilmont | 6:350b53afb889 | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
emilmont | 6:350b53afb889 | 25 | * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE |
emilmont | 6:350b53afb889 | 26 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
mbed_official | 31:015df9e602b6 | 27 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
mbed_official | 31:015df9e602b6 | 28 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
mbed_official | 31:015df9e602b6 | 29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
mbed_official | 31:015df9e602b6 | 30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
emilmont | 6:350b53afb889 | 31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
emilmont | 6:350b53afb889 | 32 | * POSSIBILITY OF SUCH DAMAGE. |
emilmont | 6:350b53afb889 | 33 | *---------------------------------------------------------------------------*/ |
emilmont | 6:350b53afb889 | 34 | |
emilmont | 6:350b53afb889 | 35 | |
emilmont | 6:350b53afb889 | 36 | /* Error Codes */ |
emilmont | 6:350b53afb889 | 37 | #define OS_ERR_STK_OVF 1 |
emilmont | 6:350b53afb889 | 38 | #define OS_ERR_FIFO_OVF 2 |
emilmont | 6:350b53afb889 | 39 | #define OS_ERR_MBX_OVF 3 |
emilmont | 6:350b53afb889 | 40 | |
emilmont | 6:350b53afb889 | 41 | /* Definitions */ |
emilmont | 6:350b53afb889 | 42 | #define BOX_ALIGN_8 0x80000000 |
emilmont | 6:350b53afb889 | 43 | #define _declare_box(pool,size,cnt) U32 pool[(((size)+3)/4)*(cnt) + 3] |
emilmont | 6:350b53afb889 | 44 | #define _declare_box8(pool,size,cnt) U64 pool[(((size)+7)/8)*(cnt) + 2] |
emilmont | 6:350b53afb889 | 45 | #define _init_box8(pool,size,bsize) _init_box (pool,size,(bsize) | BOX_ALIGN_8) |
emilmont | 6:350b53afb889 | 46 | |
emilmont | 6:350b53afb889 | 47 | /* Variables */ |
emilmont | 6:350b53afb889 | 48 | extern U32 idle_task_stack[]; |
emilmont | 6:350b53afb889 | 49 | extern U32 os_fifo[]; |
emilmont | 6:350b53afb889 | 50 | extern void *os_active_TCB[]; |
emilmont | 6:350b53afb889 | 51 | |
emilmont | 6:350b53afb889 | 52 | /* Constants */ |
emilmont | 6:350b53afb889 | 53 | extern U16 const os_maxtaskrun; |
emilmont | 6:350b53afb889 | 54 | extern U32 const os_trv; |
emilmont | 6:350b53afb889 | 55 | extern U8 const os_flags; |
emilmont | 6:350b53afb889 | 56 | extern U32 const os_rrobin; |
emilmont | 6:350b53afb889 | 57 | extern U32 const os_clockrate; |
emilmont | 6:350b53afb889 | 58 | extern U32 const os_timernum; |
emilmont | 6:350b53afb889 | 59 | extern U16 const idle_task_stack_size; |
emilmont | 6:350b53afb889 | 60 | |
emilmont | 6:350b53afb889 | 61 | extern U8 const os_fifo_size; |
emilmont | 6:350b53afb889 | 62 | |
emilmont | 6:350b53afb889 | 63 | /* Functions */ |
emilmont | 6:350b53afb889 | 64 | extern void os_idle_demon (void); |
emilmont | 6:350b53afb889 | 65 | extern int os_tick_init (void); |
emilmont | 6:350b53afb889 | 66 | extern void os_tick_irqack (void); |
emilmont | 6:350b53afb889 | 67 | extern void os_tmr_call (U16 info); |
emilmont | 6:350b53afb889 | 68 | extern void os_error (U32 err_code); |
emilmont | 6:350b53afb889 | 69 | |
emilmont | 6:350b53afb889 | 70 | /*---------------------------------------------------------------------------- |
emilmont | 6:350b53afb889 | 71 | * end of file |
emilmont | 6:350b53afb889 | 72 | *---------------------------------------------------------------------------*/ |