add usbd_task to handle event task eg setup received

This commit is contained in:
hathach
2013-11-15 12:30:22 +07:00
parent ba49d26e19
commit fc68439b74
9 changed files with 182 additions and 128 deletions

View File

@@ -266,7 +266,7 @@ void usbh_hub_port_plugged_isr(uint8_t hub_addr, uint8_t hub_port)
{
osal_queue_send(enum_queue_hdl,
&(usbh_enumerate_t){
.core_id = usbh_devices[hub_addr].core_id,
.core_id = usbh_devices[hub_addr].core_id,
.hub_addr = hub_addr,
.hub_port = hub_port}
);
@@ -276,7 +276,7 @@ void usbh_hcd_rhport_plugged_isr(uint8_t hostid)
{
osal_queue_send(enum_queue_hdl,
&(usbh_enumerate_t){
.core_id = hostid,
.core_id = hostid,
.hub_addr = 0,
.hub_port = 0}
);