summaryrefslogtreecommitdiff
path: root/tinyusb/hal
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-10-29 11:27:25 +0700
committerhathach <[email protected]>2013-10-29 11:27:25 +0700
commit357813f1714168746cf20b91ea6e11502003e5c5 (patch)
treef75a09417f24535efe727765e59e40153b7e37bc /tinyusb/hal
parentd9250260896e556c4707df5e9afccbd9dcc16d08 (diff)
implementing sw device stack
Diffstat (limited to 'tinyusb/hal')
-rw-r--r--tinyusb/hal/hal_lpc43xx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/hal/hal_lpc43xx.c b/tinyusb/hal/hal_lpc43xx.c
index 2fe019d09..1ba5c4767 100644
--- a/tinyusb/hal/hal_lpc43xx.c
+++ b/tinyusb/hal/hal_lpc43xx.c
@@ -69,9 +69,9 @@ tusb_error_t hal_init(void)
hcd_controller_reset(0); // TODO where to place prototype
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;
-// LPC_USB0->OTGSC = (1<<3) | (1<<0) /*| (1<<16)| (1<<24)| (1<<25)| (1<<26)| (1<<27)| (1<<28)| (1<<29)| (1<<30)*/;
+ dcd_controller_reset(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