2020-02-13 18:19:56 +01:00
|
|
|
# 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.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
menuconfig KCONFIG_USEMODULE_PERIPH_WDT
|
2020-02-13 18:19:56 +01:00
|
|
|
bool "Configure Watchdog peripheral"
|
2020-08-31 09:33:35 +02:00
|
|
|
depends on USEMODULE_PERIPH_WDT
|
2020-02-13 18:19:56 +01:00
|
|
|
help
|
|
|
|
Configure Watchdog peripheral using Kconfig.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
if KCONFIG_USEMODULE_PERIPH_WDT
|
2020-02-13 18:19:56 +01:00
|
|
|
|
|
|
|
config WDT_WARNING_PERIOD
|
|
|
|
int "Warning period (in ms)"
|
2020-05-27 12:31:29 +02:00
|
|
|
depends on HAS_PERIPH_WDT_WARNING_PERIOD
|
2020-02-13 18:19:56 +01:00
|
|
|
help
|
|
|
|
Period in ms before reboot where wdt_cb() is executed.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
endif # KCONFIG_USEMODULE_PERIPH_WDT
|
2020-02-13 18:19:56 +01:00
|
|
|
|
2020-05-27 12:31:29 +02:00
|
|
|
config HAS_PERIPH_WDT_WARNING_PERIOD
|
2020-02-13 18:19:56 +01:00
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that a CPU provides a warning period configuration option.
|
2020-07-27 17:09:27 +02:00
|
|
|
|
|
|
|
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
|