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

@@ -24,6 +24,8 @@ int main(void)
printf("reset\n");
while (1)
{
tusb_task_runner();
if (current_tick + 30*1000 < system_ticks)
{
current_tick += 30*1000;