2019-11-01 13:45:29 +01:00
|
|
|
# ST Microelectronics STM32 all MCU lines
|
|
|
|
|
2017-12-29 19:25:00 +02:00
|
|
|
# Copyright (c) 2017, I-SENSE group of ICCS
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-02-18 13:47:15 +01:00
|
|
|
# Here are set all the Kconfig symbols common to the whole STM32 family
|
|
|
|
|
2017-12-29 19:25:00 +02:00
|
|
|
if SOC_FAMILY_STM32
|
|
|
|
|
2019-10-10 13:53:52 +02:00
|
|
|
config CORTEX_M_SYSTICK
|
2021-03-16 09:03:42 +01:00
|
|
|
default n if STM32_LPTIM_TIMER
|
2020-05-13 14:21:46 +02:00
|
|
|
|
2021-04-02 17:13:27 +02:00
|
|
|
DT_STM32_RCC_PATH := $(dt_nodelabel_path,rcc)
|
|
|
|
DT_STM32_RCC_CLOCK_FREQ := $(dt_node_int_prop_int,$(DT_STM32_RCC_PATH),clock-frequency)
|
|
|
|
|
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
|
|
default "$(DT_STM32_RCC_CLOCK_FREQ)" if "$(dt_nodelabel_enabled,rcc)"
|
|
|
|
|
2020-05-13 14:21:46 +02:00
|
|
|
# set the tick per sec as a divider of the LPTIM clock source
|
|
|
|
config SYS_CLOCK_TICKS_PER_SEC
|
|
|
|
default 4096 if STM32_LPTIM_TIMER && STM32_LPTIM_CLOCK_LSE
|
|
|
|
default 4000 if STM32_LPTIM_TIMER && STM32_LPTIM_CLOCK_LSI
|
2019-10-10 13:53:52 +02:00
|
|
|
|
2019-10-10 11:09:03 +02:00
|
|
|
config CLOCK_CONTROL_STM32_CUBE
|
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on CLOCK_CONTROL
|
2017-12-29 19:25:00 +02:00
|
|
|
|
2021-10-18 14:45:17 -05:00
|
|
|
config CLOCK_CONTROL_INIT_PRIORITY
|
|
|
|
default 1
|
|
|
|
depends on CLOCK_CONTROL
|
|
|
|
|
2020-11-01 20:48:15 +01:00
|
|
|
config MEMC_STM32
|
|
|
|
default y
|
|
|
|
depends on MEMC
|
|
|
|
|
2017-12-29 19:25:00 +02:00
|
|
|
endif # SOC_FAMILY_STM32
|