Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lpc4322_hic: make use of OS_CLOCK defined in yaml #924

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/hic_hal/nxp/lpc4322/board_LPC43xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion source/hic_hal/nxp/lpc4322/lpc43xx_cgu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down