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