Ethernetwebsoc

Dependencies:   C12832_lcd LM75B WebSocketClient mbed-rtos mbed Socket lwip-eth lwip-sys lwip

Committer:
GordonSin
Date:
Fri May 31 04:09:54 2013 +0000
Revision:
0:0ed2a7c7190c
31/5/2013;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GordonSin 0:0ed2a7c7190c 1 #ifndef OS_TCB_H
GordonSin 0:0ed2a7c7190c 2 #define OS_TCB_H
GordonSin 0:0ed2a7c7190c 3
GordonSin 0:0ed2a7c7190c 4 /* Types */
GordonSin 0:0ed2a7c7190c 5 typedef char S8;
GordonSin 0:0ed2a7c7190c 6 typedef unsigned char U8;
GordonSin 0:0ed2a7c7190c 7 typedef short S16;
GordonSin 0:0ed2a7c7190c 8 typedef unsigned short U16;
GordonSin 0:0ed2a7c7190c 9 typedef int S32;
GordonSin 0:0ed2a7c7190c 10 typedef unsigned int U32;
GordonSin 0:0ed2a7c7190c 11 typedef long long S64;
GordonSin 0:0ed2a7c7190c 12 typedef unsigned long long U64;
GordonSin 0:0ed2a7c7190c 13 typedef unsigned char BIT;
GordonSin 0:0ed2a7c7190c 14 typedef unsigned int BOOL;
GordonSin 0:0ed2a7c7190c 15 typedef void (*FUNCP)(void);
GordonSin 0:0ed2a7c7190c 16
GordonSin 0:0ed2a7c7190c 17 typedef struct OS_TCB {
GordonSin 0:0ed2a7c7190c 18 /* General part: identical for all implementations. */
GordonSin 0:0ed2a7c7190c 19 U8 cb_type; /* Control Block Type */
GordonSin 0:0ed2a7c7190c 20 U8 state; /* Task state */
GordonSin 0:0ed2a7c7190c 21 U8 prio; /* Execution priority */
GordonSin 0:0ed2a7c7190c 22 U8 task_id; /* Task ID value for optimized TCB access */
GordonSin 0:0ed2a7c7190c 23 struct OS_TCB *p_lnk; /* Link pointer for ready/sem. wait list */
GordonSin 0:0ed2a7c7190c 24 struct OS_TCB *p_rlnk; /* Link pointer for sem./mbx lst backwards */
GordonSin 0:0ed2a7c7190c 25 struct OS_TCB *p_dlnk; /* Link pointer for delay list */
GordonSin 0:0ed2a7c7190c 26 struct OS_TCB *p_blnk; /* Link pointer for delay list backwards */
GordonSin 0:0ed2a7c7190c 27 U16 delta_time; /* Time until time out */
GordonSin 0:0ed2a7c7190c 28 U16 interval_time; /* Time interval for periodic waits */
GordonSin 0:0ed2a7c7190c 29 U16 events; /* Event flags */
GordonSin 0:0ed2a7c7190c 30 U16 waits; /* Wait flags */
GordonSin 0:0ed2a7c7190c 31 void **msg; /* Direct message passing when task waits */
GordonSin 0:0ed2a7c7190c 32
GordonSin 0:0ed2a7c7190c 33 /* Hardware dependant part: specific for CM processor */
GordonSin 0:0ed2a7c7190c 34 U8 stack_frame; /* Stack frame: 0=Basic, 1=Extended */
GordonSin 0:0ed2a7c7190c 35 U8 reserved;
GordonSin 0:0ed2a7c7190c 36 U16 priv_stack; /* Private stack size in bytes */
GordonSin 0:0ed2a7c7190c 37 U32 tsk_stack; /* Current task Stack pointer (R13) */
GordonSin 0:0ed2a7c7190c 38 U32 *stack; /* Pointer to Task Stack memory block */
GordonSin 0:0ed2a7c7190c 39
GordonSin 0:0ed2a7c7190c 40 /* Library dependant part */
GordonSin 0:0ed2a7c7190c 41 #if defined (__CC_ARM) && !defined (__MICROLIB)
GordonSin 0:0ed2a7c7190c 42 /* A memory space for arm standard library. */
GordonSin 0:0ed2a7c7190c 43 U32 std_libspace[96/4];
GordonSin 0:0ed2a7c7190c 44 #endif
GordonSin 0:0ed2a7c7190c 45
GordonSin 0:0ed2a7c7190c 46 /* Task entry point used for uVision debugger */
GordonSin 0:0ed2a7c7190c 47 FUNCP ptask; /* Task entry address */
GordonSin 0:0ed2a7c7190c 48 } *P_TCB;
GordonSin 0:0ed2a7c7190c 49
GordonSin 0:0ed2a7c7190c 50 #endif