mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
28aed3cb97
This splits up the clock configs. It allows CPU_FAM based file sourcing and also common CPU_FAMs. The dependancies are also included in wildcards would be used for the CPU_FAM macro. This should be much more readable. This also takes into account the HSE speeds in order to match the make/header resolution. Some hidden symbols were added to make sorting many CPU_SERIES dependencies easier.
26 lines
781 B
Plaintext
26 lines
781 B
Plaintext
# Copyright (c) 2022 HAW Hamburg
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
# directory for more details.
|
|
#
|
|
|
|
rsource '../g4l4l5/Kconfig.clk'
|
|
rsource '../l4l5wx/Kconfig.clk'
|
|
|
|
if CPU_FAM_L4
|
|
|
|
config CLOCK_PLL_M
|
|
int "M: PLLIN division factor" if CUSTOM_PLL_PARAMS
|
|
default 6 if CLOCK_PLL_SRC_MSI
|
|
default 2
|
|
range 1 8
|
|
|
|
config CLOCK_PLL_N
|
|
int "N: PLLIN multiply factor" if CUSTOM_PLL_PARAMS
|
|
default 30 if CPU_LINE_STM32L4A6XX || CPU_LINE_STM32L4P5XX || CPU_LINE_STM32L4Q5XX || CPU_LINE_STM32L4R5XX || CPU_LINE_STM32L4R7XX || CPU_LINE_STM32L4R9XX || CPU_LINE_STM32L4S5XX || CPU_LINE_STM32L4S7XX || CPU_LINE_STM32L4S9XX
|
|
default 20
|
|
range 8 86
|
|
|
|
endif # CPU_FAM_L4
|