diff options
| author | hathach <[email protected]> | 2013-10-29 11:27:25 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-10-29 11:27:25 +0700 |
| commit | 357813f1714168746cf20b91ea6e11502003e5c5 (patch) | |
| tree | f75a09417f24535efe727765e59e40153b7e37bc /tinyusb/hal | |
| parent | d9250260896e556c4707df5e9afccbd9dcc16d08 (diff) | |
implementing sw device stack
Diffstat (limited to 'tinyusb/hal')
| -rw-r--r-- | tinyusb/hal/hal_lpc43xx.c | 6 |
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
|
