diff --git a/source/hic_hal/nxp/lpc4322/board_LPC43xx.c b/source/hic_hal/nxp/lpc4322/board_LPC43xx.c index 367366f58..c8141cb80 100644 --- a/source/hic_hal/nxp/lpc4322/board_LPC43xx.c +++ b/source/hic_hal/nxp/lpc4322/board_LPC43xx.c @@ -24,8 +24,8 @@ void sdk_init(void) { - /* Set core clock to 120MHz */ - CGU_Init(120000000); + /* Set core clock */ + CGU_Init(OS_CLOCK); /* Set up USB0 clock */ /* Disable PLL first */ CGU_EnableEntity(CGU_CLKSRC_PLL0, DISABLE); diff --git a/source/hic_hal/nxp/lpc4322/lpc43xx_cgu.c b/source/hic_hal/nxp/lpc4322/lpc43xx_cgu.c index 867cc2fb4..56fecb485 100644 --- a/source/hic_hal/nxp/lpc4322/lpc43xx_cgu.c +++ b/source/hic_hal/nxp/lpc4322/lpc43xx_cgu.c @@ -244,7 +244,7 @@ uint32_t CGU_Init(uint32_t wantedFreq) // Setup PLL1 to 204MHz // 0. Select IRC as BASE_M4_CLK source CGU_EntityConnect(CGU_CLKSRC_IRC, CGU_BASE_M4); - SystemCoreClock = 120000000; + SystemCoreClock = OS_CLOCK; // 1. Enable the crystal oscillator CGU_SetXTALOSC(12000000); CGU_EnableEntity(CGU_CLKSRC_XTAL_OSC, ENABLE);