File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ static uint8_t running;
53
53
// NOTE: Setting the CMSIS SystemCoreClock value to the actual value it will
54
54
// be AFTER SystemInit() runs. This is required so the hal drivers will have
55
55
// the correct value when the DATA sections are initialized.
56
- uint32_t SystemCoreClock = RO_FREQ ;
56
+ uint32_t SystemCoreClock = RO_FREQ / 2 ;
57
57
58
58
void SystemCoreClockUpdate (void )
59
59
{
@@ -147,10 +147,9 @@ void SystemInit(void)
147
147
148
148
low_level_init ();
149
149
150
- // Select 96MHz ring oscillator as clock source
150
+ // Select 48MHz ring oscillator as clock source
151
151
uint32_t reg = MXC_CLKMAN -> clk_ctrl ;
152
152
reg &= ~MXC_F_CLKMAN_CLK_CTRL_SYSTEM_SOURCE_SELECT ;
153
- reg |= 1 << MXC_F_CLKMAN_CLK_CTRL_SYSTEM_SOURCE_SELECT_POS ;
154
153
MXC_CLKMAN -> clk_ctrl = reg ;
155
154
156
155
// Copy trim information from shadow registers into power manager registers
Original file line number Diff line number Diff line change 59
59
#define OS_MAINSTKSIZE 256
60
60
#endif
61
61
#ifndef OS_CLOCK
62
- #define OS_CLOCK 96000000
62
+ #define OS_CLOCK 48000000
63
63
#endif
64
64
65
65
#endif
You can’t perform that action at this time.
0 commit comments