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