diff options
| author | hathach <[email protected]> | 2013-06-01 21:54:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-06-01 21:54:08 +0700 |
| commit | 7d78fc1baf24c537ea7386f698e1e20ed80f16ba (patch) | |
| tree | c0b625e3b38d55265ef4c4cbe5aa942c4405145e /tinyusb/device/usbd.c | |
| parent | 9e49056721e7fbba2bdb5933c7eabf9548f4279f (diff) | |
rename romdriver handle
forming API for USBD-CLASS driver (abstract away from rom driver)
separate buffer of hid class from buffer of core driver
Diffstat (limited to 'tinyusb/device/usbd.c')
| -rw-r--r-- | tinyusb/device/usbd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c index 5fb5d0202..594112c88 100644 --- a/tinyusb/device/usbd.c +++ b/tinyusb/device/usbd.c @@ -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; } |
