refractor usbd, first step to make get configuration as sub task

This commit is contained in:
hathach
2013-11-15 13:26:12 +07:00
parent fc68439b74
commit 05c439e45a
5 changed files with 46 additions and 50 deletions

View File

@@ -360,6 +360,7 @@ tusb_error_t enumeration_body_subtask(void)
OSAL_SUBTASK_BEGIN
osal_queue_receive(enum_queue_hdl, &enum_entry, OSAL_TIMEOUT_WAIT_FOREVER, &error);
SUBTASK_ASSERT_STATUS(error);
usbh_devices[0].core_id = enum_entry.core_id; // TODO refractor integrate to device_pool
usbh_devices[0].hub_addr = enum_entry.hub_addr;