diff options
| author | hathach <[email protected]> | 2013-11-18 17:29:12 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-18 17:29:12 +0700 |
| commit | 94854f805aa8c80ffe77d8cef3ecfd45a3a9f253 (patch) | |
| tree | 7b253dc397879317fd53c76e013888e9b6955b08 /tinyusb/hal | |
| parent | b104d21e7112614e18f1e789fa2dd22ca09f9e4d (diff) | |
get lpc17xx running through enumeration (with control data < 64)
Diffstat (limited to 'tinyusb/hal')
| -rw-r--r-- | tinyusb/hal/hal_lpc175x_6x.c | 6 | ||||
| -rw-r--r-- | tinyusb/hal/hal_lpc175x_6x.h | 1 |
2 files changed, 2 insertions, 5 deletions
diff --git a/tinyusb/hal/hal_lpc175x_6x.c b/tinyusb/hal/hal_lpc175x_6x.c index 3f1b2a357..aca4bd42b 100644 --- a/tinyusb/hal/hal_lpc175x_6x.c +++ b/tinyusb/hal/hal_lpc175x_6x.c @@ -46,10 +46,6 @@ #include "common/common.h" #include "hal.h" -enum { - PCONP_PCUSB = 31 -}; - //--------------------------------------------------------------------+ // IMPLEMENTATION //--------------------------------------------------------------------+ @@ -66,7 +62,7 @@ tusb_error_t hal_init(void) // LPC_PINCON->PINSEL3 &= ~(3<<6); TODO HOST // LPC_PINCON->PINSEL3 |= (2<<6); - LPC_SC->PCONP |= BIT_(PCONP_PCUSB); /* USB PCLK -> enable USB Per.*/ + LPC_SC->PCONP |= CLKPWR_PCONP_PCUSB; /* USB PCLK -> enable USB Per.*/ // DEVICE mode LPC_USB->USBClkCtrl = 0x12; /* Dev, PortSel, AHB clock enable */ diff --git a/tinyusb/hal/hal_lpc175x_6x.h b/tinyusb/hal/hal_lpc175x_6x.h index 4f3224cee..013bdcb37 100644 --- a/tinyusb/hal/hal_lpc175x_6x.h +++ b/tinyusb/hal/hal_lpc175x_6x.h @@ -47,6 +47,7 @@ #define _TUSB_HAL_LPC175X_6X_H_ #include "LPC17xx.h" +#include "lpc17xx_clkpwr.h" #ifdef __cplusplus extern "C" { |
