Yasushi TAUCHI / Mbed 2 deprecated giken9_HTMLServer_Sample

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_TASK.H
yueee_yt 0:7766f6712673 5 * Purpose: Task functions and system start up.
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 #define __CMSIS_RTOS 1
yueee_yt 0:7766f6712673 37
yueee_yt 0:7766f6712673 38 /* Values for 'state' */
yueee_yt 0:7766f6712673 39 #define INACTIVE 0
yueee_yt 0:7766f6712673 40 #define READY 1
yueee_yt 0:7766f6712673 41 #define RUNNING 2
yueee_yt 0:7766f6712673 42 #define WAIT_DLY 3
yueee_yt 0:7766f6712673 43 #define WAIT_ITV 4
yueee_yt 0:7766f6712673 44 #define WAIT_OR 5
yueee_yt 0:7766f6712673 45 #define WAIT_AND 6
yueee_yt 0:7766f6712673 46 #define WAIT_SEM 7
yueee_yt 0:7766f6712673 47 #define WAIT_MBX 8
yueee_yt 0:7766f6712673 48 #define WAIT_MUT 9
yueee_yt 0:7766f6712673 49
yueee_yt 0:7766f6712673 50 /* Return codes */
yueee_yt 0:7766f6712673 51 #define OS_R_TMO 0x01
yueee_yt 0:7766f6712673 52 #define OS_R_EVT 0x02
yueee_yt 0:7766f6712673 53 #define OS_R_SEM 0x03
yueee_yt 0:7766f6712673 54 #define OS_R_MBX 0x04
yueee_yt 0:7766f6712673 55 #define OS_R_MUT 0x05
yueee_yt 0:7766f6712673 56
yueee_yt 0:7766f6712673 57 #define OS_R_OK 0x00
yueee_yt 0:7766f6712673 58 #define OS_R_NOK 0xff
yueee_yt 0:7766f6712673 59
yueee_yt 0:7766f6712673 60 /* Variables */
yueee_yt 0:7766f6712673 61 extern struct OS_TSK os_tsk;
yueee_yt 0:7766f6712673 62 extern struct OS_TCB os_idle_TCB;
yueee_yt 0:7766f6712673 63
yueee_yt 0:7766f6712673 64 /* Functions */
yueee_yt 0:7766f6712673 65 extern void rt_switch_req (P_TCB p_new);
yueee_yt 0:7766f6712673 66 extern void rt_dispatch (P_TCB next_TCB);
yueee_yt 0:7766f6712673 67 extern void rt_block (U16 timeout, U8 block_state);
yueee_yt 0:7766f6712673 68 extern void rt_tsk_pass (void);
yueee_yt 0:7766f6712673 69 extern OS_TID rt_tsk_self (void);
yueee_yt 0:7766f6712673 70 extern OS_RESULT rt_tsk_prio (OS_TID task_id, U8 new_prio);
yueee_yt 0:7766f6712673 71 extern OS_RESULT rt_tsk_delete (OS_TID task_id);
yueee_yt 0:7766f6712673 72 extern void rt_sys_init (void);
yueee_yt 0:7766f6712673 73 extern void rt_sys_start (void);