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
This commit is contained in:
hathach
2013-03-12 20:04:29 +07:00
parent 60c2caf84a
commit d2bd80109e
10 changed files with 39 additions and 12 deletions

View File

@@ -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