Port to C027 (using AppShield and Ethernet)

Dependencies:   C12832 EthernetInterface LM75B MMA7660 MQTT mbed-rtos mbed

Fork of IBMIoTClientEthernetExample by IBM Watson IoT

Committer:
icraggs
Date:
Wed Oct 01 13:27:35 2014 +0000
Revision:
8:80d49dd91542
Parent:
6:37b6d0d56190
Remove conditional compilation for IBM IoT settings

Who changed what in which revision?

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