Skip to content

Commit 120267b

Browse files
DerekSnellnashif
authored andcommitted
soc: nxp: rw: Update system core clock frequency
After updating the main_clk, need to update the frequency tracked in HAL MCUXpresso SDK framework for other drivers. Signed-off-by: Derek Snell <[email protected]> (cherry picked from commit 793e44a)
1 parent 0ea0868 commit 120267b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

soc/nxp/rw/soc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ __ramfunc void clock_init(void)
132132
CLOCK_SetClkDiv(kCLOCK_DivSystickClk, 1U);
133133
CLOCK_AttachClk(kSYSTICK_DIV_to_SYSTICK_CLK);
134134

135+
SystemCoreClockUpdate();
136+
135137
/* Set PLL FRG clock to 20MHz. */
136138
CLOCK_SetClkDiv(kCLOCK_DivPllFrgClk, 13U);
137139

0 commit comments

Comments
 (0)