Changeset 374 for asp3_tinet_ecnl_rx/trunk/usbhost
- Timestamp:
- Apr 5, 2019, 9:26:53 PM (5 years ago)
- Location:
- asp3_tinet_ecnl_rx/trunk/usbhost
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/usbhost/src/usb_hbth.h
r337 r374 11 11 #define USBHOST_STACK_SIZE 2048 12 12 13 extern void usbhost_init(ID tskid); 14 extern void usbhost_main(intptr_t exinf); 13 enum task_event_t { 14 TASK_EVENT_START, 15 TASK_EVENT_TERMINATE, 16 TASK_EVENT_WAKEUP, 17 TASK_EVENT_TIMEOUT, 18 TASK_EVENT_TICK = 0x80, 19 }; 20 21 struct task_if_t { 22 void (*on_start)(struct task_if_t *task, ID tskid); 23 void (*on_end)(struct task_if_t *task); 24 int (*get_timer)(struct task_if_t *task); 25 void (*progress)(struct task_if_t *task, int elapse); 26 void (*process)(struct task_if_t *task, enum task_event_t event); 27 }; 28 29 extern struct task_if_t bt_task; 30 31 void usbhost_init(ID tskid); 32 void usbhost_main(intptr_t exinf); 15 33 16 34 /*
Note:
See TracChangeset
for help on using the changeset viewer.