From 94854f805aa8c80ffe77d8cef3ecfd45a3a9f253 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 18 Nov 2013 17:29:12 +0700 Subject: get lpc17xx running through enumeration (with control data < 64) --- tinyusb/hal/hal_lpc175x_6x.c | 6 +----- tinyusb/hal/hal_lpc175x_6x.h | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'tinyusb/hal') 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" { -- cgit v1.3.1