summaryrefslogtreecommitdiff
path: root/tinyusb/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-25 16:02:24 +0700
committerhathach <[email protected]>2013-03-25 16:02:24 +0700
commitc026a9f2e0aca713c7cb5f08eb40018f7f16e1be (patch)
treee41cc280d7558de8fafcf29c9198dcf54fa76e03 /tinyusb/host
parent45db7b4a533c8f4693167e120cc8285b29b4794f (diff)
remove obsolete TUSB_CFG_HOST_HID_KEYBOARD_ENDPOINT_SIZE
temporarily ignore test for hid_host.c due to ceedling linking issue with weak symbol implement hidh_open_subtask driver to subclass open rename hidh_keyboard_install to hidh_keyboard_open_subtask
Diffstat (limited to 'tinyusb/host')
-rw-r--r--tinyusb/host/usbh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c
index 24c112bf6..c6fc411fa 100644
--- a/tinyusb/host/usbh.c
+++ b/tinyusb/host/usbh.c
@@ -250,8 +250,8 @@ OSAL_TASK_DECLARE(usbh_enumeration_task)
// 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;
- static uint8_t *p_desc = NULL;
+ static uint8_t configure_selected = 1; // TODO move
+ static uint8_t *p_desc = NULL; // TODO move
OSAL_TASK_LOOP_BEGIN
@@ -385,9 +385,9 @@ OSAL_TASK_DECLARE(usbh_enumeration_task)
TASK_ASSERT( false ); // corrupted data, abort enumeration
}
// supported class
- else if ( class_code < TUSB_CLASS_MAX_CONSEC_NUMBER && usbh_class_drivers[class_code].open_subtask)
+ else if ( class_code < TUSB_CLASS_MAX_CONSEC_NUMBER && usbh_class_drivers[class_code].open_subtask) // TODO custom class
{
- uint16_t length;
+ uint16_t length=0;
OSAL_SUBTASK_INVOKED_AND_WAIT ( // parameters in task/sub_task must be static storage (static or global)
usbh_class_drivers[ ((tusb_descriptor_interface_t*) p_desc)->bInterfaceClass ].open_subtask(new_addr, p_desc, &length) );
p_desc += length;