diff options
| author | hathach <[email protected]> | 2013-05-29 16:56:15 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-05-29 16:56:15 +0700 |
| commit | 04a641f0670eb448f561aa945ecc2a7cf0365469 (patch) | |
| tree | 794c92e42c21b9c2a765ab54a36497804c650b9d /tinyusb/hal | |
| parent | d5836751d913e2f7cb90bb1a4cdc95274d585a48 (diff) | |
ea4357 can be enumerated, but get setconfiugre value of 0
Diffstat (limited to 'tinyusb/hal')
| -rw-r--r-- | tinyusb/hal/hal_lpc43xx.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tinyusb/hal/hal_lpc43xx.c b/tinyusb/hal/hal_lpc43xx.c index 1284391e5..6b23ca9a2 100644 --- a/tinyusb/hal/hal_lpc43xx.c +++ b/tinyusb/hal/hal_lpc43xx.c @@ -70,8 +70,10 @@ tusb_error_t hal_init(void) LPC_USB0->USBMODE_H = LPC43XX_USBMODE_HOST | (LPC43XX_USBMODE_VBUS_HIGH << 5); #else // TODO OTG // dcd_controller_reset(0); - LPC_USB0->USBMODE_D = LPC43XX_USBMODE_DEVICE; - dcd_controller_connect(0); +// LPC_USB0->USBMODE_D = LPC43XX_USBMODE_DEVICE; +// LPC_USB0->OTGSC = (1<<3) | (1<<0) /*| (1<<16)| (1<<24)| (1<<25)| (1<<26)| (1<<27)| (1<<28)| (1<<29)| (1<<30)*/; +// LPC_USB0->PORTSC1_D |= (1<<24); // force full speed +// dcd_controller_connect(0); #endif hal_interrupt_enable(0); @@ -104,18 +106,18 @@ tusb_error_t hal_init(void) return TUSB_ERROR_NONE; } +#if TUSB_CFG_CONTROLLER0_MODE void USB0_IRQHandler(void) { -#if TUSB_CFG_CONTROLLER0_MODE tusb_isr(0); -#endif } +#endif +#if TUSB_CFG_CONTROLLER1_MODE void USB1_IRQHandler(void) { -#if TUSB_CFG_CONTROLLER1_MODE tusb_isr(1); -#endif } +#endif #endif |
