kopia lustrzana https://github.com/OpenRTX/OpenRTX
Fixed bad clock tree configuration for STM32F405 MCU
rodzic
a5eeca7dae
commit
eb876f1b0c
|
@ -96,7 +96,7 @@ stm32f405_inc = ['platform/mcu/CMSIS/Include',
|
|||
'rtos/uC-OS3/Ports/ARM-Cortex-M/ARMv7-M',
|
||||
'rtos/uC-CPU/ARM-Cortex-M/ARMv7-M']
|
||||
|
||||
stm32f405_def = {'STM32F40_41xxx': ''}
|
||||
stm32f405_def = {'STM32F40_41xxx': '', 'HSE_VALUE':'8000000'}
|
||||
|
||||
##
|
||||
## Platform specializations
|
||||
|
|
|
@ -316,7 +316,7 @@ static void SetSysClock(void)
|
|||
RCC->CFGR |= RCC_CFGR_PPRE1_DIV4;
|
||||
|
||||
/* Configure the main PLL */
|
||||
RCC->PLLCFGR = PLL_M | (PLL_N << 6) | (((PLL_P >> 1) -1) << 16) |
|
||||
RCC->PLLCFGR = PLL_M | (PLL_N << 5) | (((PLL_P >> 1) -1) << 16) |
|
||||
(RCC_PLLCFGR_PLLSRC_HSE) | (PLL_Q << 24);
|
||||
|
||||
/* Enable the main PLL */
|
||||
|
|
Ładowanie…
Reference in New Issue