1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/stm32/periph: add FMC support to Kconfig

This commit is contained in:
Gunar Schorcht 2023-07-23 18:47:38 +02:00
parent 516c74b81e
commit 19a8a22eac
2 changed files with 99 additions and 0 deletions

View File

@ -74,6 +74,8 @@ config RDP2
bool "RDP2"
endchoice
rsource "periph/Kconfig.fmc"
if TEST_KCONFIG
rsource "periph/Kconfig"

View File

@ -0,0 +1,97 @@
# Copyright (c) 2023 Gunar Schorcht
#
# 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.
#
menuconfig MODULE_PERIPH_FMC
bool "FMC/FSMC peripheral driver"
depends on TEST_KCONFIG
depends on HAS_PERIPH_FMC
help
STM32 FMC/FSMC controller
if MODULE_PERIPH_FMC
config MODULE_PERIPH_FMC_NOR_SRAM
bool "NOR/PSRAM/SRAM support"
depends on HAS_PERIPH_FMC_NOR_SRAM
help
Enables NOR Flash, PSRAM and SRAM support of the STM32 FMC/FSMC
driver.
config MODULE_PERIPH_FMC_SDRAM
bool "SDRAM support"
depends on HAS_PERIPH_FMC_SDRAM
help
Enables SDRAM support of the STM32 FMC/FSMC driver.
config MODULE_PERIPH_FMC_16BIT
bool
default y if HAS_PERIPH_FMC_16BIT
help
Enables 16-bit data bus support of the STM32 FMC/FSMC driver.
config MODULE_PERIPH_FMC_32BIT
bool
default y if HAS_PERIPH_FMC_32BIT
help
Enables 32-bit data bus support of the STM32 FMC/FSMC driver.
config MODULE_PERIPH_INIT_FMC
bool "Auto initialize STM32 FMC/FMSC peripheral"
default y if MODULE_PERIPH_INIT
config MODULE_PERIPH_INIT_FMC_NOR_SRAM
bool "Auto initialize NOR/PSRAM/SRAM support"
default y if MODULE_PERIPH_INIT
depends on MODULE_PERIPH_FMC_NOR_SRAM
config MODULE_PERIPH_INIT_FMC_SDRAM
bool "Auto initialize SDRAM support"
default y if MODULE_PERIPH_INIT
depends on MODULE_PERIPH_FMC_SDRAM
config MODULE_PERIPH_INIT_FMC_16BIT
bool "Auto initialize 16-bit data bus"
default y if MODULE_PERIPH_INIT
depends on MODULE_PERIPH_FMC_16BIT
config MODULE_PERIPH_INIT_FMC_32BIT
bool "Auto initialize 32-bit data bus"
default y if MODULE_PERIPH_INIT
depends on MODULE_PERIPH_FMC_32BIT
endif
config HAS_PERIPH_FMC
bool
help
Indicates that a STM32 FMC/FSMC peripheral is present.
config HAS_PERIPH_FMC_NOR_SRAM
bool
select HAS_PERIPH_FMC
help
Indicates that a NOR Flash, PSRAM or SRAM connected to the
STM32 FMC/FSMC peripheral is present.
config HAS_PERIPH_FMC_SDRAM
bool
select HAS_PERIPH_FMC
help
Indicates that a SDRAM connected to the STM32 FMC/FSMC peripheral
is present.
config HAS_PERIPH_FMC_16BIT
bool
select HAS_PERIPH_FMC
help
Indicates that the STM32 FMC/FSMC peripheral uses a 16-bit data bus.
config HAS_PERIPH_FMC_32BIT
bool
select HAS_PERIPH_FMC
help
Indicates that the STM32 FMC/FSMC peripheral uses a 32-bit data bus.