1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/stm32/periph/Kconfig.fmc
2023-07-26 09:02:10 +02:00

98 lines
2.5 KiB
Plaintext

# 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.