Code for our FYDP -only one IMU works right now -RTOS is working

Dependencies:   mbed

Committer:
majik
Date:
Wed Mar 18 22:23:48 2015 +0000
Revision:
0:964eb6a2ef00
This is our FYDP code, but only one IMU works with the RTOS.

Who changed what in which revision?

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