1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

cpu/stm32: show PLL params in menuconfig with CUSTOM_PLL_PARAMS

This commit is contained in:
Alexandre Abadie 2020-11-10 11:42:11 +01:00
parent 6e9a433c9a
commit 5d77b7d90d
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -114,13 +114,13 @@ endif # CPU_FAM_G0 || CPU_FAM_G4 || CPU_FAM_L4 || CPU_FAM_L5 || CPU_FAM_WB
if CPU_FAM_F0
config CLOCK_PLL_PREDIV
int "PLLIN division factor" if USE_CLOCK_PLL && !CPU_LINE_STM32F031X6 && !CPU_LINE_STM32F042X6
int "PLLIN division factor" if CUSTOM_PLL_PARAMS && !CPU_LINE_STM32F031X6 && !CPU_LINE_STM32F042X6
default 2 if CPU_LINE_STM32F031X6 || CPU_LINE_STM32F042X6
default 1
range 1 16
config CLOCK_PLL_MUL
int "PLLIN multiply factor" if USE_CLOCK_PLL
int "PLLIN multiply factor" if CUSTOM_PLL_PARAMS
default 12 if CPU_LINE_STM32F031X6 || CPU_LINE_STM32F042X6
default 6
range 2 16
@ -128,12 +128,12 @@ endif
if CPU_FAM_L0 || CPU_FAM_L1
config CLOCK_PLL_DIV
int "Main PLL division factor" if USE_CLOCK_PLL
int "Main PLL division factor" if CUSTOM_PLL_PARAMS
default 2
range 2 4
choice
bool "Main PLL multiply factor" if USE_CLOCK_PLL
bool "Main PLL multiply factor" if CUSTOM_PLL_PARAMS
default PLL_MUL_4
config PLL_MUL_3