diff options
Diffstat (limited to 'tinyusb/hal')
| -rw-r--r-- | tinyusb/hal/hal_lpc175x_6x.c | 8 | ||||
| -rw-r--r-- | tinyusb/hal/hal_lpc175x_6x.h | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tinyusb/hal/hal_lpc175x_6x.c b/tinyusb/hal/hal_lpc175x_6x.c index bb840a40d..c04b1660c 100644 --- a/tinyusb/hal/hal_lpc175x_6x.c +++ b/tinyusb/hal/hal_lpc175x_6x.c @@ -47,11 +47,13 @@ tusb_error_t hal_init(void)
{
enum {
- USBCLK_DEVCIE = 0x12, // AHB + Device
- USBCLK_HOST = 0x19 // AHB + Host + OTG (!)
+ USBCLK_DEVCIE = 0x12, // AHB + Device
+ USBCLK_HOST = 0x19, // AHB + Host + OTG (!)
+
+ PCONP_PCUSB = BIT_(31)
};
- LPC_SC->PCONP |= CLKPWR_PCONP_PCUSB; // enable USB Peripherals
+ LPC_SC->PCONP |= PCONP_PCUSB; // enable USB Peripherals
//------------- user manual 11.13 usb device controller initialization -------------//
PINSEL_ConfigPin( &(PINSEL_CFG_Type) { .Portnum = 0, .Pinnum = 29, .Funcnum = 1} ); // P0.29 as D+
diff --git a/tinyusb/hal/hal_lpc175x_6x.h b/tinyusb/hal/hal_lpc175x_6x.h index 47b38747b..e0ab4f59a 100644 --- a/tinyusb/hal/hal_lpc175x_6x.h +++ b/tinyusb/hal/hal_lpc175x_6x.h @@ -47,7 +47,6 @@ #define _TUSB_HAL_LPC175X_6X_H_ #include "LPC17xx.h" -#include "lpc17xx_clkpwr.h" #include "lpc17xx_pinsel.h" #ifdef __cplusplus |
