Skip to content

Commit 2bb3db7

Browse files
committed
fixed check error
1 parent 36b2132 commit 2bb3db7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bsp/at32/libraries/AT32M412_416_Firmware_Library/cmsis/cm4/device_support/system_at32m412_416.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void SystemInit (void)
8888
/* reset pllms pllns pllfr pllrcs bits */
8989
CRM->pllcfg = 0x00033002U;
9090

91-
/* reset clkout[3], hickdiv, clkoutdiv */
91+
/* reset clkout[3], clkoutdiv */
9292
CRM->misc1 = 0x000F1000;
9393

9494
/* disable all interrupts enable and clear pending bits */
@@ -124,7 +124,7 @@ void system_core_clock_update(void)
124124
switch(sclk_source)
125125
{
126126
case CRM_SCLK_HICK:
127-
if(((CRM->misc1_bit.hick_to_sclk) != RESET) && ((CRM->misc1_bit.hickdiv) != RESET))
127+
if((CRM->misc1_bit.hick_to_sclk) != RESET)
128128
system_core_clock = HICK_VALUE * 6;
129129
else
130130
system_core_clock = HICK_VALUE;

0 commit comments

Comments
 (0)