diff options
| author | hathach <[email protected]> | 2013-02-08 12:52:46 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-02-08 12:52:46 +0700 |
| commit | 5bacdc6c0fb7ea5255974142498b2dc56e3778ee (patch) | |
| tree | 405864b2ad77c8c640f98840eb01db39f2f191e9 /tinyusb/host | |
| parent | 489b98cb933e1f4b164bf1172a405d22528d2b8b (diff) | |
updating usbh init with class init
Diffstat (limited to 'tinyusb/host')
| -rw-r--r-- | tinyusb/host/usbh.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c index 00574d52f..faa305464 100644 --- a/tinyusb/host/usbh.c +++ b/tinyusb/host/usbh.c @@ -93,10 +93,16 @@ tusb_error_t usbh_init(void) ASSERT_STATUS( hcd_init(TUSB_CFG_HOST_CONTROLLER_START_INDEX+i) ); } + //------------- Enumeration & Reporter Task init -------------// ASSERT_STATUS( osal_task_create(&enum_task) ); enum_queue_hdl = osal_queue_create(&enum_queue); ASSERT_PTR(enum_queue_hdl, TUSB_ERROR_OSAL_QUEUE_FAILED); + //------------- class init -------------// +#if HOST_CLASS_HID + hidh_init(); +#endif + return TUSB_ERROR_NONE; } @@ -109,7 +115,7 @@ void usbh_enumeration_task(void) usbh_enumerate_t enum_entry; tusb_std_request_t request_packet; - // for OSAL_NONE local variable wont retain value after blocking service sem_wait/queue_recv + // for OSAL_NONE local variable won't retain value after blocking service sem_wait/queue_recv static uint8_t new_addr; static uint8_t configure_selected = 1; |
