うおーるぼっとをWiiリモコンでコントロールする新しいプログラムです。 以前のものより、Wiiリモコンが早く繋がる様になりました。 It is a program which controls A with the Wii remote. ※ A Bluetooth dongle and a Wii remote control are needed.
Dependencies: USBHost mbed FATFileSystem mbed-rtos
USBHost/mbed-rtos/rtx/os_tcb.h@0:fccb789424fc, 2013-06-10 (annotated)
- Committer:
- jksoft
- Date:
- Mon Jun 10 16:01:50 2013 +0000
- Revision:
- 0:fccb789424fc
1.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 0:fccb789424fc | 1 | #ifndef OS_TCB_H |
jksoft | 0:fccb789424fc | 2 | #define OS_TCB_H |
jksoft | 0:fccb789424fc | 3 | |
jksoft | 0:fccb789424fc | 4 | /* Types */ |
jksoft | 0:fccb789424fc | 5 | typedef char S8; |
jksoft | 0:fccb789424fc | 6 | typedef unsigned char U8; |
jksoft | 0:fccb789424fc | 7 | typedef short S16; |
jksoft | 0:fccb789424fc | 8 | typedef unsigned short U16; |
jksoft | 0:fccb789424fc | 9 | typedef int S32; |
jksoft | 0:fccb789424fc | 10 | typedef unsigned int U32; |
jksoft | 0:fccb789424fc | 11 | typedef long long S64; |
jksoft | 0:fccb789424fc | 12 | typedef unsigned long long U64; |
jksoft | 0:fccb789424fc | 13 | typedef unsigned char BIT; |
jksoft | 0:fccb789424fc | 14 | typedef unsigned int BOOL; |
jksoft | 0:fccb789424fc | 15 | typedef void (*FUNCP)(void); |
jksoft | 0:fccb789424fc | 16 | |
jksoft | 0:fccb789424fc | 17 | typedef struct OS_TCB { |
jksoft | 0:fccb789424fc | 18 | /* General part: identical for all implementations. */ |
jksoft | 0:fccb789424fc | 19 | U8 cb_type; /* Control Block Type */ |
jksoft | 0:fccb789424fc | 20 | U8 state; /* Task state */ |
jksoft | 0:fccb789424fc | 21 | U8 prio; /* Execution priority */ |
jksoft | 0:fccb789424fc | 22 | U8 task_id; /* Task ID value for optimized TCB access */ |
jksoft | 0:fccb789424fc | 23 | struct OS_TCB *p_lnk; /* Link pointer for ready/sem. wait list */ |
jksoft | 0:fccb789424fc | 24 | struct OS_TCB *p_rlnk; /* Link pointer for sem./mbx lst backwards */ |
jksoft | 0:fccb789424fc | 25 | struct OS_TCB *p_dlnk; /* Link pointer for delay list */ |
jksoft | 0:fccb789424fc | 26 | struct OS_TCB *p_blnk; /* Link pointer for delay list backwards */ |
jksoft | 0:fccb789424fc | 27 | U16 delta_time; /* Time until time out */ |
jksoft | 0:fccb789424fc | 28 | U16 interval_time; /* Time interval for periodic waits */ |
jksoft | 0:fccb789424fc | 29 | U16 events; /* Event flags */ |
jksoft | 0:fccb789424fc | 30 | U16 waits; /* Wait flags */ |
jksoft | 0:fccb789424fc | 31 | void **msg; /* Direct message passing when task waits */ |
jksoft | 0:fccb789424fc | 32 | |
jksoft | 0:fccb789424fc | 33 | /* Hardware dependant part: specific for CM processor */ |
jksoft | 0:fccb789424fc | 34 | U8 stack_frame; /* Stack frame: 0=Basic, 1=Extended */ |
jksoft | 0:fccb789424fc | 35 | U8 reserved; |
jksoft | 0:fccb789424fc | 36 | U16 priv_stack; /* Private stack size in bytes */ |
jksoft | 0:fccb789424fc | 37 | U32 tsk_stack; /* Current task Stack pointer (R13) */ |
jksoft | 0:fccb789424fc | 38 | U32 *stack; /* Pointer to Task Stack memory block */ |
jksoft | 0:fccb789424fc | 39 | |
jksoft | 0:fccb789424fc | 40 | /* Library dependant part */ |
jksoft | 0:fccb789424fc | 41 | #if defined (__CC_ARM) && !defined (__MICROLIB) |
jksoft | 0:fccb789424fc | 42 | /* A memory space for arm standard library. */ |
jksoft | 0:fccb789424fc | 43 | U32 std_libspace[96/4]; |
jksoft | 0:fccb789424fc | 44 | #endif |
jksoft | 0:fccb789424fc | 45 | |
jksoft | 0:fccb789424fc | 46 | /* Task entry point used for uVision debugger */ |
jksoft | 0:fccb789424fc | 47 | FUNCP ptask; /* Task entry address */ |
jksoft | 0:fccb789424fc | 48 | } *P_TCB; |
jksoft | 0:fccb789424fc | 49 | |
jksoft | 0:fccb789424fc | 50 | #endif |