lpc176x: Move enable_peripheral_clock to main.c
Move and rename function to enable_pclock() - in keeping with other ARM ports. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -251,7 +251,7 @@ usbserial_init(void)
|
||||
{
|
||||
usb_irq_disable();
|
||||
// enable power
|
||||
LPC_SC->PCONP |= (1<<31);
|
||||
enable_pclock(PCLK_USB);
|
||||
// enable clock
|
||||
LPC_USB->USBClkCtrl = 0x12;
|
||||
while (LPC_USB->USBClkSt != 0x12)
|
||||
|
||||
Reference in New Issue
Block a user