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
|
|
|
|
|
|
|
config UART_STM32
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on SERIAL
|
2017-12-29 19:25:00 +02:00
|
|
|
|
|
|
|
if GPIO
|
|
|
|
|
|
|
|
config GPIO_STM32
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2017-12-29 19:25:00 +02:00
|
|
|
|
2019-11-01 10:24:07 +01:00
|
|
|
endif # GPIO
|
2017-12-29 19:25:00 +02:00
|
|
|
|
|
|
|
config PINMUX_STM32
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on PINMUX
|
2017-12-29 19:25:00 +02:00
|
|
|
|
|
|
|
config PWM_STM32
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on PWM
|
2017-12-29 19:25:00 +02:00
|
|
|
|
|
|
|
config SPI_STM32
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on SPI
|
2018-02-28 11:27:46 +01:00
|
|
|
|
2020-03-30 17:28:49 +02:00
|
|
|
config I2S_STM32
|
|
|
|
default y
|
|
|
|
depends on I2S
|
|
|
|
|
2017-10-27 20:21:12 +03:00
|
|
|
config USB_DC_STM32
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2021-06-30 12:07:29 +02:00
|
|
|
depends on USB_DEVICE_DRIVER
|
2018-11-29 11:08:41 +01:00
|
|
|
|
|
|
|
config COUNTER_RTC_STM32
|
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on COUNTER
|
2019-02-24 08:28:17 -06:00
|
|
|
|
2019-05-07 16:37:35 +08:00
|
|
|
config ADC_STM32
|
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on ADC
|
2019-05-07 16:37:35 +08:00
|
|
|
|
2019-10-24 19:06:19 +08:00
|
|
|
if DMA
|
|
|
|
|
|
|
|
config DMA_STM32
|
|
|
|
default y
|
|
|
|
|
|
|
|
endif # DMA
|
|
|
|
|
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
|