Skip to content

Commit

Permalink
SoC: no need to get system clock using get_cpu_freq for gd32vf103
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Jan 4, 2024
1 parent d270370 commit ec4c2b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SoC/gd32vf103/Common/Source/system_gd32vf103.c
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,8 @@ int32_t ECLIC_Register_IRQ(IRQn_Type IRQn, uint8_t shv, ECLIC_TRIGGER_Type trig_
void _premain_init(void)
{
/* TODO: Add your own initialization code here, called before main */
SystemCoreClock = get_cpu_freq();
// No need to get SystemCoreClock now, it is initialized by PLL it get it via this function
//SystemCoreClock = get_cpu_freq();
/* configure USART */
gd_com_init(SOC_DEBUG_UART);
/* Display banner after UART initialized */
Expand Down

0 comments on commit ec4c2b6

Please sign in to comment.