ソースの整理中ですが、利用はできます。

Dependencies:   EthernetInterface HttpServer TextLCD mbed-rpc mbed-rtos mbed Socket lwip-eth lwip-sys lwip

Committer:
yueee_yt
Date:
Wed Mar 12 04:19:54 2014 +0000
Revision:
0:7766f6712673
???????????????

Who changed what in which revision?

UserRevisionLine numberNew 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: RT_LIST.H
yueee_yt 0:7766f6712673 5 * Purpose: Functions for the management of different lists
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 /* Definitions */
yueee_yt 0:7766f6712673 36
yueee_yt 0:7766f6712673 37 /* Values for 'cb_type' */
yueee_yt 0:7766f6712673 38 #define TCB 0
yueee_yt 0:7766f6712673 39 #define MCB 1
yueee_yt 0:7766f6712673 40 #define SCB 2
yueee_yt 0:7766f6712673 41 #define MUCB 3
yueee_yt 0:7766f6712673 42 #define HCB 4
yueee_yt 0:7766f6712673 43
yueee_yt 0:7766f6712673 44 /* Variables */
yueee_yt 0:7766f6712673 45 extern struct OS_XCB os_rdy;
yueee_yt 0:7766f6712673 46 extern struct OS_XCB os_dly;
yueee_yt 0:7766f6712673 47
yueee_yt 0:7766f6712673 48 /* Functions */
yueee_yt 0:7766f6712673 49 extern void rt_put_prio (P_XCB p_CB, P_TCB p_task);
yueee_yt 0:7766f6712673 50 extern P_TCB rt_get_first (P_XCB p_CB);
yueee_yt 0:7766f6712673 51 extern void rt_put_rdy_first (P_TCB p_task);
yueee_yt 0:7766f6712673 52 extern P_TCB rt_get_same_rdy_prio (void);
yueee_yt 0:7766f6712673 53 extern void rt_resort_prio (P_TCB p_task);
yueee_yt 0:7766f6712673 54 extern void rt_put_dly (P_TCB p_task, U16 delay);
yueee_yt 0:7766f6712673 55 extern void rt_dec_dly (void);
yueee_yt 0:7766f6712673 56 extern void rt_rmv_list (P_TCB p_task);
yueee_yt 0:7766f6712673 57 extern void rt_rmv_dly (P_TCB p_task);
yueee_yt 0:7766f6712673 58 extern void rt_psq_enq (OS_ID entry, U32 arg);
yueee_yt 0:7766f6712673 59
yueee_yt 0:7766f6712673 60 /* This is a fast macro generating in-line code */
yueee_yt 0:7766f6712673 61 #define rt_rdy_prio(void) (os_rdy.p_lnk->prio)
yueee_yt 0:7766f6712673 62
yueee_yt 0:7766f6712673 63
yueee_yt 0:7766f6712673 64 /*----------------------------------------------------------------------------
yueee_yt 0:7766f6712673 65 * end of file
yueee_yt 0:7766f6712673 66 *---------------------------------------------------------------------------*/
yueee_yt 0:7766f6712673 67