Daoyu_Sofiane Yao_Belouka / mbed-rtos

Dependents:   Mecatro_Gyro_Programme_Codeur_HC06

Committer:
daoyu_sofiane
Date:
Fri Apr 16 09:25:33 2021 +0000
Revision:
0:a8ed743bc1e1
Projet Gyropode

Who changed what in which revision?

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