Skip to content

Commit f8c1edf

Browse files
author
Adrian Negreanu
committed
lpc43xx_hic,board: remove CGU code
1 parent dc6b748 commit f8c1edf

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

source/hic_hal/nxp/lpc4322/board_LPC43xx.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,7 @@
2020
*/
2121

2222
#include "sdk.h"
23-
#include "lpc43xx_cgu.h"
2423

2524
void sdk_init(void)
2625
{
27-
/* Set core clock to 120MHz */
28-
CGU_Init(120000000);
29-
/* Set up USB0 clock */
30-
/* Disable PLL first */
31-
CGU_EnableEntity(CGU_CLKSRC_PLL0, DISABLE);
32-
33-
/* the usb core require output clock = 480MHz */
34-
if (CGU_SetPLL0() != CGU_ERROR_SUCCESS) {
35-
while (1);
36-
}
37-
38-
CGU_EntityConnect(CGU_CLKSRC_XTAL_OSC, CGU_CLKSRC_PLL0);
39-
/* Enable PLL after all setting is done */
40-
CGU_EnableEntity(CGU_CLKSRC_PLL0, ENABLE);
41-
/* Turn on the USB0PHY */
42-
LPC_CREG->CREG0 &= ~(1 << 5);
4326
}

0 commit comments

Comments
 (0)