diff options
| author | hathach <[email protected]> | 2013-03-12 20:04:29 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-12 20:04:29 +0700 |
| commit | d2bd80109ef5fb46ca46fae168f5d3a5096794bc (patch) | |
| tree | 103415b6e97e04001a33af2f950c0355a3b2bb03 /tinyusb/tusb.c | |
| parent | 60c2caf84a4ee9e9095925186de0cd275005b2fc (diff) | |
add semaphore post in usbh_isr for control pipe
add osal_queue_send in usbh_device_plugged
add macro for placing breakpoint macros
fix ehci init:
- regs->cmd or (add run_stop)
- enable port power in portsc
add tusb_task_runner in main loop
Diffstat (limited to 'tinyusb/tusb.c')
| -rw-r--r-- | tinyusb/tusb.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tinyusb/tusb.c b/tinyusb/tusb.c index fb5cf013c..77678d779 100644 --- a/tinyusb/tusb.c +++ b/tinyusb/tusb.c @@ -66,3 +66,13 @@ void tusb_isr(uint8_t controller_id) #endif } + +#if TUSB_CFG_OS == TUSB_OS_NONE +// periodically/continuously called in the main loop +void tusb_task_runner(void) +{ + #if MODE_HOST_SUPPORTED + usbh_enumeration_task(); // TODO prototype + #endif +} +#endif |
