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/host/usbh.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/host/usbh.c')
| -rw-r--r-- | tinyusb/host/usbh.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c index 05234aadc..b7deaee84 100644 --- a/tinyusb/host/usbh.c +++ b/tinyusb/host/usbh.c @@ -171,7 +171,7 @@ void usbh_isr(pipe_handle_t pipe_hdl, uint8_t class_code) { if (class_code == 0) // Control transfer { - // TODO some semaphore posting + osal_semaphore_post( usbh_device_info_pool[ pipe_hdl.dev_addr ].sem_hdl ); }else if (usbh_class_drivers[class_code].isr) { usbh_class_drivers[class_code].isr(pipe_hdl); @@ -183,7 +183,9 @@ void usbh_isr(pipe_handle_t pipe_hdl, uint8_t class_code) void usbh_device_plugged_isr(uint8_t hostid, tusb_speed_t speed) { - + osal_queue_send(enum_queue_hdl, + *( (uint32_t*) ( &(usbh_enumerate_t){ .core_id = hostid, .speed = speed} ) ) + ); } void usbh_device_unplugged_isr(uint8_t hostid) |
