Skip to content

Commit da0afc7

Browse files
author
Adrian Negreanu
committed
lpc4322_hic: make use of OS_CLOCK defined in yaml
1 parent 10103f1 commit da0afc7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/hic_hal/nxp/lpc4322/board_LPC43xx.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
void sdk_init(void)
2626
{
27-
/* Set core clock to 120MHz */
28-
CGU_Init(120000000);
27+
/* Set core clock */
28+
CGU_Init(OS_CLOCK);
2929
/* Set up USB0 clock */
3030
/* Disable PLL first */
3131
CGU_EnableEntity(CGU_CLKSRC_PLL0, DISABLE);

source/hic_hal/nxp/lpc4322/lpc43xx_cgu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ uint32_t CGU_Init(uint32_t wantedFreq)
244244
// Setup PLL1 to 204MHz
245245
// 0. Select IRC as BASE_M4_CLK source
246246
CGU_EntityConnect(CGU_CLKSRC_IRC, CGU_BASE_M4);
247-
SystemCoreClock = 120000000;
247+
SystemCoreClock = OS_CLOCK;
248248
// 1. Enable the crystal oscillator
249249
CGU_SetXTALOSC(12000000);
250250
CGU_EnableEntity(CGU_CLKSRC_XTAL_OSC, ENABLE);

0 commit comments

Comments
 (0)