1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/periph_common/Kconfig
2020-08-12 12:22:40 +02:00

187 lines
4.5 KiB
Plaintext

# Copyright (c) 2020 HAW Hamburg
#
# 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 KCONFIG_MODULE_PERIPH_WDT
bool "Configure Watchdog peripheral"
depends on MODULE_PERIPH_WDT
help
Configure Watchdog peripheral using Kconfig.
if KCONFIG_MODULE_PERIPH_WDT
config WDT_WARNING_PERIOD
int "Warning period (in ms)"
depends on HAS_PERIPH_WDT_WARNING_PERIOD
help
Period in ms before reboot where wdt_cb() is executed.
endif # KCONFIG_MODULE_PERIPH_WDT
config HAS_PERIPH_WDT_WARNING_PERIOD
bool
help
Indicates that a CPU provides a warning period configuration option.
menu "Peripheral drivers"
depends on TEST_KCONFIG
config MOD_PERIPH_COMMON
bool
help
Common peripherals module.
config MOD_PERIPH_INIT
bool "Peripherals auto-initialization"
default y
help
Auto-initialization of all used peripherals.
# Common peripheral modules and auto-init
config MOD_PERIPH_ADC
bool "ADC peripheral driver"
depends on HAS_PERIPH_ADC
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_ADC
bool "Auto initialize ADC peripheral"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_ADC
config MOD_PERIPH_CPUID
bool "CPU unique ID"
depends on HAS_PERIPH_CPUID
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_CPUID
bool "Auto initialize CPU unique ID driver"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_CPUID
config MOD_PERIPH_DAC
bool "DAC peripheral driver"
depends on HAS_PERIPH_DAC
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_DAC
bool "Auto initialize DAC peripheral"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_DAC
config MOD_PERIPH_DMA
bool "DMA peripheral driver"
depends on HAS_PERIPH_DMA
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_DMA
bool "Auto initialize DMA peripheral"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_DMA
config MOD_PERIPH_EEPROM
bool "EEPROM peripheral driver"
depends on HAS_PERIPH_EEPROM
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_EEPROM
bool "Auto initialize EEPROM peripheral"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_EEPROM
rsource "Kconfig.flashpage"
rsource "Kconfig.gpio"
config MOD_PERIPH_HWRNG
bool "HWRNG peripheral driver"
depends on HAS_PERIPH_HWRNG
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_HWRNG
bool "Auto initialize HWRNG peripheral"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_HWRNG
rsource "Kconfig.i2c"
config MOD_PERIPH_PWM
bool "PWM peripheral driver"
depends on HAS_PERIPH_PWM
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_PWM
bool "Auto initialize PWM peripheral"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_PWM
config MOD_PERIPH_PM
bool "Power Management (PM) peripheral driver"
default y
depends on HAS_PERIPH_PM
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_PM
bool "Auto initialize Power Management (PM) peripheral"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_PM
config MOD_PERIPH_QDEC
bool "Quadrature Decoder (QDEC) peripheral driver"
depends on HAS_PERIPH_QDEC
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_QDEC
bool "Auto initialize Quadrature Decoder (QDEC) peripheral"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_QDEC
config MOD_PERIPH_RTC
bool "RTC peripheral driver"
depends on HAS_PERIPH_RTC
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_RTC
bool "Auto initialize RTC peripheral"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_RTC
config MOD_PERIPH_RTT
bool "RTT peripheral driver"
depends on HAS_PERIPH_RTT
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_RTT
bool "Auto initialize RTT peripheral"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_RTT
rsource "Kconfig.spi"
rsource "Kconfig.timer"
rsource "Kconfig.uart"
config MOD_PERIPH_USBDEV
bool "USBDEV peripheral driver"
depends on HAS_PERIPH_USBDEV
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_USBDEV
bool "Auto initialize USBDEV peripheral"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_USBDEV
menuconfig MOD_PERIPH_WDT
bool "Watchdog Timer peripheral driver"
depends on HAS_PERIPH_WDT
select MOD_PERIPH_COMMON
config MOD_PERIPH_INIT_WDT
bool "Auto initialize the Watchdog Timer peripheral"
default y if MOD_PERIPH_INIT
depends on MOD_PERIPH_WDT
endmenu # Peripheral drivers