diff options
| author | hathach <[email protected]> | 2013-05-23 13:22:46 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-05-23 13:22:46 +0700 |
| commit | 8cb7818bcc048a69b9e2b0a4607c8f75bc35c359 (patch) | |
| tree | 6307b044a94f013c7ec74b1462318484b30c1a76 /tinyusb/tusb.c | |
| parent | d7ae21203c1a7915c397157a9d231264ff0e66fc (diff) | |
- move CMSIS & driver lib for lpc13u to codebase bsp/lpc13xx
- change descriptor.c/h able to build device example
Diffstat (limited to 'tinyusb/tusb.c')
| -rw-r--r-- | tinyusb/tusb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/tusb.c b/tinyusb/tusb.c index fe61c105d..57ebef53a 100644 --- a/tinyusb/tusb.c +++ b/tinyusb/tusb.c @@ -47,8 +47,8 @@ tusb_error_t tusb_init(void) ASSERT_STATUS( usbh_init() ); // host stack init #endif -#ifdef TUSB_CFG_DEVICE - ASSERT_STATUS( dcd_init(0) ); // device stack init +#if MODE_DEVICE_SUPPORTED + ASSERT_STATUS ( usbd_init() ); // device stack init #endif return TUSB_ERROR_NONE; @@ -61,7 +61,7 @@ void tusb_isr(uint8_t controller_id) hcd_isr(controller_id); #endif -#ifdef TUSB_CFG_DEVICE +#if MODE_DEVICE_SUPPORTED dcd_isr(controller_id); #endif |
