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