Anasse Abdoul / Mbed 2 deprecated Test_MPU6050

Dependencies:   mbed

Committer:
anasse
Date:
Thu Mar 31 07:43:50 2022 +0000
Revision:
0:a59a3d743804
vers0

Who changed what in which revision?

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