Ethernet test for ECE 4180 and others to find your IP address and do a simple HTTP GET request over port 80.
Dependencies: mbed Socket lwip-eth lwip-sys lwip
mbed-rtos/rtx/os_tcb.h@0:e7ca326e76ee, 2013-04-04 (annotated)
- Committer:
- mkersh3
- Date:
- Thu Apr 04 05:26:09 2013 +0000
- Revision:
- 0:e7ca326e76ee
Ethernet Test for ECE4180 and others to find their IP Address and do a simple HTTP GET request over port 80.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mkersh3 | 0:e7ca326e76ee | 1 | #ifndef OS_TCB_H |
mkersh3 | 0:e7ca326e76ee | 2 | #define OS_TCB_H |
mkersh3 | 0:e7ca326e76ee | 3 | |
mkersh3 | 0:e7ca326e76ee | 4 | /* Types */ |
mkersh3 | 0:e7ca326e76ee | 5 | typedef char S8; |
mkersh3 | 0:e7ca326e76ee | 6 | typedef unsigned char U8; |
mkersh3 | 0:e7ca326e76ee | 7 | typedef short S16; |
mkersh3 | 0:e7ca326e76ee | 8 | typedef unsigned short U16; |
mkersh3 | 0:e7ca326e76ee | 9 | typedef int S32; |
mkersh3 | 0:e7ca326e76ee | 10 | typedef unsigned int U32; |
mkersh3 | 0:e7ca326e76ee | 11 | typedef long long S64; |
mkersh3 | 0:e7ca326e76ee | 12 | typedef unsigned long long U64; |
mkersh3 | 0:e7ca326e76ee | 13 | typedef unsigned char BIT; |
mkersh3 | 0:e7ca326e76ee | 14 | typedef unsigned int BOOL; |
mkersh3 | 0:e7ca326e76ee | 15 | typedef void (*FUNCP)(void); |
mkersh3 | 0:e7ca326e76ee | 16 | |
mkersh3 | 0:e7ca326e76ee | 17 | typedef struct OS_TCB { |
mkersh3 | 0:e7ca326e76ee | 18 | /* General part: identical for all implementations. */ |
mkersh3 | 0:e7ca326e76ee | 19 | U8 cb_type; /* Control Block Type */ |
mkersh3 | 0:e7ca326e76ee | 20 | U8 state; /* Task state */ |
mkersh3 | 0:e7ca326e76ee | 21 | U8 prio; /* Execution priority */ |
mkersh3 | 0:e7ca326e76ee | 22 | U8 task_id; /* Task ID value for optimized TCB access */ |
mkersh3 | 0:e7ca326e76ee | 23 | struct OS_TCB *p_lnk; /* Link pointer for ready/sem. wait list */ |
mkersh3 | 0:e7ca326e76ee | 24 | struct OS_TCB *p_rlnk; /* Link pointer for sem./mbx lst backwards */ |
mkersh3 | 0:e7ca326e76ee | 25 | struct OS_TCB *p_dlnk; /* Link pointer for delay list */ |
mkersh3 | 0:e7ca326e76ee | 26 | struct OS_TCB *p_blnk; /* Link pointer for delay list backwards */ |
mkersh3 | 0:e7ca326e76ee | 27 | U16 delta_time; /* Time until time out */ |
mkersh3 | 0:e7ca326e76ee | 28 | U16 interval_time; /* Time interval for periodic waits */ |
mkersh3 | 0:e7ca326e76ee | 29 | U16 events; /* Event flags */ |
mkersh3 | 0:e7ca326e76ee | 30 | U16 waits; /* Wait flags */ |
mkersh3 | 0:e7ca326e76ee | 31 | void **msg; /* Direct message passing when task waits */ |
mkersh3 | 0:e7ca326e76ee | 32 | |
mkersh3 | 0:e7ca326e76ee | 33 | /* Hardware dependant part: specific for CM processor */ |
mkersh3 | 0:e7ca326e76ee | 34 | U8 stack_frame; /* Stack frame: 0=Basic, 1=Extended */ |
mkersh3 | 0:e7ca326e76ee | 35 | U8 reserved; |
mkersh3 | 0:e7ca326e76ee | 36 | U16 priv_stack; /* Private stack size in bytes */ |
mkersh3 | 0:e7ca326e76ee | 37 | U32 tsk_stack; /* Current task Stack pointer (R13) */ |
mkersh3 | 0:e7ca326e76ee | 38 | U32 *stack; /* Pointer to Task Stack memory block */ |
mkersh3 | 0:e7ca326e76ee | 39 | |
mkersh3 | 0:e7ca326e76ee | 40 | /* Library dependant part */ |
mkersh3 | 0:e7ca326e76ee | 41 | #if defined (__CC_ARM) && !defined (__MICROLIB) |
mkersh3 | 0:e7ca326e76ee | 42 | /* A memory space for arm standard library. */ |
mkersh3 | 0:e7ca326e76ee | 43 | U32 std_libspace[96/4]; |
mkersh3 | 0:e7ca326e76ee | 44 | #endif |
mkersh3 | 0:e7ca326e76ee | 45 | |
mkersh3 | 0:e7ca326e76ee | 46 | /* Task entry point used for uVision debugger */ |
mkersh3 | 0:e7ca326e76ee | 47 | FUNCP ptask; /* Task entry address */ |
mkersh3 | 0:e7ca326e76ee | 48 | } *P_TCB; |
mkersh3 | 0:e7ca326e76ee | 49 | |
mkersh3 | 0:e7ca326e76ee | 50 | #endif |