[MAX32620HSP] Reduced system clock speed due to SPI issue.

pull/2832/head
Jeremy Brodt 2016-10-06 10:21:43 -05:00
parent d535180784
commit 98dd41988b
2 changed files with 3 additions and 4 deletions

View File

@ -53,7 +53,7 @@ static uint8_t running;
// NOTE: Setting the CMSIS SystemCoreClock value to the actual value it will
// be AFTER SystemInit() runs. This is required so the hal drivers will have
// the correct value when the DATA sections are initialized.
uint32_t SystemCoreClock = RO_FREQ;
uint32_t SystemCoreClock = RO_FREQ / 2;
void SystemCoreClockUpdate(void)
{
@ -147,10 +147,9 @@ void SystemInit(void)
low_level_init();
// Select 96MHz ring oscillator as clock source
// Select 48MHz ring oscillator as clock source
uint32_t reg = MXC_CLKMAN->clk_ctrl;
reg &= ~MXC_F_CLKMAN_CLK_CTRL_SYSTEM_SOURCE_SELECT;
reg |= 1 << MXC_F_CLKMAN_CLK_CTRL_SYSTEM_SOURCE_SELECT_POS;
MXC_CLKMAN->clk_ctrl = reg;
// Copy trim information from shadow registers into power manager registers

View File

@ -59,7 +59,7 @@
#define OS_MAINSTKSIZE 256
#endif
#ifndef OS_CLOCK
#define OS_CLOCK 96000000
#define OS_CLOCK 48000000
#endif
#endif