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