Lab Checkoff

Dependencies:   SDFileSystem TextLCD mbed-rtos mbed wave_player FATFileSystem

Committer:
doubster
Date:
Wed Nov 13 20:00:28 2013 +0000
Revision:
0:67dbd54e60d4
Lab Checkoff

Who changed what in which revision?

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