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