get lpc17xx running through enumeration (with control data < 64)

This commit is contained in:
hathach
2013-11-18 17:29:12 +07:00
parent b104d21e71
commit 94854f805a
14 changed files with 197 additions and 173 deletions

View File

@@ -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 */