Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
rtx/TARGET_CORTEX_A/RTX_Config.h@0:4a2c9c1f5b9e, 2021-03-15 (annotated)
- Committer:
- mecatro_prod
- Date:
- Mon Mar 15 14:18:11 2021 +0000
- Revision:
- 0:4a2c9c1f5b9e
Pas de changement
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mecatro_prod | 0:4a2c9c1f5b9e | 1 | /*---------------------------------------------------------------------------- |
mecatro_prod | 0:4a2c9c1f5b9e | 2 | * RL-ARM - RTX |
mecatro_prod | 0:4a2c9c1f5b9e | 3 | *---------------------------------------------------------------------------- |
mecatro_prod | 0:4a2c9c1f5b9e | 4 | * Name: RTX_CONFIG.H |
mecatro_prod | 0:4a2c9c1f5b9e | 5 | * Purpose: Exported functions of RTX_Config.c |
mecatro_prod | 0:4a2c9c1f5b9e | 6 | * Rev.: V4.70 |
mecatro_prod | 0:4a2c9c1f5b9e | 7 | *---------------------------------------------------------------------------- |
mecatro_prod | 0:4a2c9c1f5b9e | 8 | * |
mecatro_prod | 0:4a2c9c1f5b9e | 9 | * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH |
mecatro_prod | 0:4a2c9c1f5b9e | 10 | * All rights reserved. |
mecatro_prod | 0:4a2c9c1f5b9e | 11 | * Redistribution and use in source and binary forms, with or without |
mecatro_prod | 0:4a2c9c1f5b9e | 12 | * modification, are permitted provided that the following conditions are met: |
mecatro_prod | 0:4a2c9c1f5b9e | 13 | * - Redistributions of source code must retain the above copyright |
mecatro_prod | 0:4a2c9c1f5b9e | 14 | * notice, this list of conditions and the following disclaimer. |
mecatro_prod | 0:4a2c9c1f5b9e | 15 | * - Redistributions in binary form must reproduce the above copyright |
mecatro_prod | 0:4a2c9c1f5b9e | 16 | * notice, this list of conditions and the following disclaimer in the |
mecatro_prod | 0:4a2c9c1f5b9e | 17 | * documentation and/or other materials provided with the distribution. |
mecatro_prod | 0:4a2c9c1f5b9e | 18 | * - Neither the name of ARM nor the names of its contributors may be used |
mecatro_prod | 0:4a2c9c1f5b9e | 19 | * to endorse or promote products derived from this software without |
mecatro_prod | 0:4a2c9c1f5b9e | 20 | * specific prior written permission. |
mecatro_prod | 0:4a2c9c1f5b9e | 21 | * |
mecatro_prod | 0:4a2c9c1f5b9e | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mecatro_prod | 0:4a2c9c1f5b9e | 23 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mecatro_prod | 0:4a2c9c1f5b9e | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
mecatro_prod | 0:4a2c9c1f5b9e | 25 | * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE |
mecatro_prod | 0:4a2c9c1f5b9e | 26 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
mecatro_prod | 0:4a2c9c1f5b9e | 27 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
mecatro_prod | 0:4a2c9c1f5b9e | 28 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
mecatro_prod | 0:4a2c9c1f5b9e | 29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
mecatro_prod | 0:4a2c9c1f5b9e | 30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
mecatro_prod | 0:4a2c9c1f5b9e | 31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
mecatro_prod | 0:4a2c9c1f5b9e | 32 | * POSSIBILITY OF SUCH DAMAGE. |
mecatro_prod | 0:4a2c9c1f5b9e | 33 | *---------------------------------------------------------------------------*/ |
mecatro_prod | 0:4a2c9c1f5b9e | 34 | |
mecatro_prod | 0:4a2c9c1f5b9e | 35 | |
mecatro_prod | 0:4a2c9c1f5b9e | 36 | /* Error Codes */ |
mecatro_prod | 0:4a2c9c1f5b9e | 37 | #define OS_ERR_STK_OVF 1 |
mecatro_prod | 0:4a2c9c1f5b9e | 38 | #define OS_ERR_FIFO_OVF 2 |
mecatro_prod | 0:4a2c9c1f5b9e | 39 | #define OS_ERR_MBX_OVF 3 |
mecatro_prod | 0:4a2c9c1f5b9e | 40 | |
mecatro_prod | 0:4a2c9c1f5b9e | 41 | /* Definitions */ |
mecatro_prod | 0:4a2c9c1f5b9e | 42 | #define BOX_ALIGN_8 0x80000000 |
mecatro_prod | 0:4a2c9c1f5b9e | 43 | #define _declare_box(pool,size,cnt) U32 pool[(((size)+3)/4)*(cnt) + 3] |
mecatro_prod | 0:4a2c9c1f5b9e | 44 | #define _declare_box8(pool,size,cnt) U64 pool[(((size)+7)/8)*(cnt) + 2] |
mecatro_prod | 0:4a2c9c1f5b9e | 45 | #define _init_box8(pool,size,bsize) _init_box (pool,size,(bsize) | BOX_ALIGN_8) |
mecatro_prod | 0:4a2c9c1f5b9e | 46 | |
mecatro_prod | 0:4a2c9c1f5b9e | 47 | /* Variables */ |
mecatro_prod | 0:4a2c9c1f5b9e | 48 | extern U32 mp_tcb[]; |
mecatro_prod | 0:4a2c9c1f5b9e | 49 | extern U64 mp_stk[]; |
mecatro_prod | 0:4a2c9c1f5b9e | 50 | extern U32 os_fifo[]; |
mecatro_prod | 0:4a2c9c1f5b9e | 51 | extern void *os_active_TCB[]; |
mecatro_prod | 0:4a2c9c1f5b9e | 52 | |
mecatro_prod | 0:4a2c9c1f5b9e | 53 | /* Constants */ |
mecatro_prod | 0:4a2c9c1f5b9e | 54 | extern U16 const os_maxtaskrun; |
mecatro_prod | 0:4a2c9c1f5b9e | 55 | extern U32 const os_trv; |
mecatro_prod | 0:4a2c9c1f5b9e | 56 | extern U8 const os_flags; |
mecatro_prod | 0:4a2c9c1f5b9e | 57 | extern U32 const os_stackinfo; |
mecatro_prod | 0:4a2c9c1f5b9e | 58 | extern U32 const os_rrobin; |
mecatro_prod | 0:4a2c9c1f5b9e | 59 | extern U32 const os_clockrate; |
mecatro_prod | 0:4a2c9c1f5b9e | 60 | extern U32 const os_timernum; |
mecatro_prod | 0:4a2c9c1f5b9e | 61 | extern U16 const mp_tcb_size; |
mecatro_prod | 0:4a2c9c1f5b9e | 62 | extern U32 const mp_stk_size; |
mecatro_prod | 0:4a2c9c1f5b9e | 63 | extern U32 const *m_tmr; |
mecatro_prod | 0:4a2c9c1f5b9e | 64 | extern U16 const mp_tmr_size; |
mecatro_prod | 0:4a2c9c1f5b9e | 65 | extern U8 const os_fifo_size; |
mecatro_prod | 0:4a2c9c1f5b9e | 66 | |
mecatro_prod | 0:4a2c9c1f5b9e | 67 | /* Functions */ |
mecatro_prod | 0:4a2c9c1f5b9e | 68 | extern void os_idle_demon (void); |
mecatro_prod | 0:4a2c9c1f5b9e | 69 | extern int os_tick_init (void); |
mecatro_prod | 0:4a2c9c1f5b9e | 70 | extern U32 os_tick_val (void); |
mecatro_prod | 0:4a2c9c1f5b9e | 71 | extern U32 os_tick_ovf (void); |
mecatro_prod | 0:4a2c9c1f5b9e | 72 | extern void os_tick_irqack (void); |
mecatro_prod | 0:4a2c9c1f5b9e | 73 | extern void os_tmr_call (U16 info); |
mecatro_prod | 0:4a2c9c1f5b9e | 74 | extern void os_error (U32 err_code); |
mecatro_prod | 0:4a2c9c1f5b9e | 75 | |
mecatro_prod | 0:4a2c9c1f5b9e | 76 | /*---------------------------------------------------------------------------- |
mecatro_prod | 0:4a2c9c1f5b9e | 77 | * end of file |
mecatro_prod | 0:4a2c9c1f5b9e | 78 | *---------------------------------------------------------------------------*/ |