2020-07-15 11:52:15 +02:00
|
|
|
# Copyright (c) 2020 Inria
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
|
|
|
config CPU_STM32
|
|
|
|
bool
|
|
|
|
select HAS_CPU_STM32
|
|
|
|
select HAS_PERIPH_CPUID
|
|
|
|
select HAS_PERIPH_GPIO
|
|
|
|
select HAS_PERIPH_GPIO_IRQ
|
2020-06-29 22:15:48 +02:00
|
|
|
select HAS_PERIPH_TIMER_PERIODIC
|
2021-01-13 20:48:29 +01:00
|
|
|
select HAS_PERIPH_RTT_OVERFLOW
|
2020-07-15 11:52:15 +02:00
|
|
|
select HAS_PERIPH_UART_MODECFG
|
|
|
|
select HAS_PERIPH_UART_NONBLOCKING
|
|
|
|
|
2021-09-17 10:24:08 +02:00
|
|
|
# This CPU requires periph_rtc when periph_rtc_mem
|
|
|
|
select MODULE_PERIPH_RTC if MODULE_PERIPH_RTC_MEM && HAS_PERIPH_RTC
|
|
|
|
|
2020-09-11 08:32:37 +02:00
|
|
|
# Common CPU symbol
|
2020-07-15 11:52:15 +02:00
|
|
|
config CPU
|
|
|
|
default "stm32" if CPU_STM32
|
|
|
|
|
2020-09-11 08:32:37 +02:00
|
|
|
# Definition of specific features
|
|
|
|
config HAS_CPU_STM32
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that a 'stm32' cpu is being used.
|
|
|
|
|
|
|
|
config HAS_BOOTLOADER_STM32
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that the stm32 bootloader is being used.
|
|
|
|
|
2020-10-23 15:38:54 +02:00
|
|
|
orsource "kconfigs/Kconfig.clk"
|
2020-10-20 22:21:12 +02:00
|
|
|
orsource "kconfigs/*/Kconfig"
|
|
|
|
orsource "kconfigs/*/Kconfig.lines"
|
|
|
|
orsource "kconfigs/*/Kconfig.models"
|
2020-09-24 15:21:07 +02:00
|
|
|
|
2021-05-19 17:41:00 +02:00
|
|
|
if TEST_KCONFIG
|
|
|
|
|
|
|
|
rsource "periph/Kconfig"
|
|
|
|
rsource "stmclk/Kconfig"
|
|
|
|
rsource "vectors/Kconfig"
|
|
|
|
|
|
|
|
endif # TEST_KCONFIG
|
|
|
|
|
2020-07-15 11:52:15 +02:00
|
|
|
source "$(RIOTCPU)/cortexm_common/Kconfig"
|