rename romdriver handle

forming API for USBD-CLASS driver (abstract away from rom driver)
separate buffer of hid class from buffer of core driver
This commit is contained in:
hathach
2013-06-01 21:54:08 +07:00
parent 9e49056721
commit 7d78fc1baf
9 changed files with 166 additions and 136 deletions

View File

@@ -80,6 +80,16 @@ tusb_error_t usbd_init (void)
ASSERT_STATUS ( dcd_init() );
#if TUSB_CFG_DEVICE_HID_KEYBOARD
ASSERT_STATUS( hidd_init(&app_tusb_desc_configuration.keyboard_interface) );
#endif
#ifndef _TEST_
hal_interrupt_enable(0); // TODO USB1
#endif
dcd_controller_connect(0); // TODO USB1
return TUSB_ERROR_NONE;
}