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 12:53:01 +02:00
|
|
|
if TEST_KCONFIG
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
bool
|
|
|
|
help
|
|
|
|
Common peripherals module.
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Peripherals auto-initialization"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Auto-initialization of all used peripherals.
|
|
|
|
|
|
|
|
# Common peripheral modules and auto-init
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_ADC
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "ADC peripheral driver"
|
|
|
|
depends on HAS_PERIPH_ADC
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_ADC
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize ADC peripheral"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_ADC
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2022-02-26 22:45:46 +01:00
|
|
|
config MODULE_PERIPH_INIT_BUTTONS
|
|
|
|
bool
|
|
|
|
depends on TEST_KCONFIG
|
|
|
|
help
|
|
|
|
Enable auto initialization of on-board buttons
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_CPUID
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "CPU unique ID"
|
|
|
|
depends on HAS_PERIPH_CPUID
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_CPUID
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize CPU unique ID driver"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_CPUID
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_DAC
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "DAC peripheral driver"
|
|
|
|
depends on HAS_PERIPH_DAC
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_DAC
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize DAC peripheral"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_DAC
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_DMA
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "DMA peripheral driver"
|
|
|
|
depends on HAS_PERIPH_DMA
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_DMA
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize DMA peripheral"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_DMA
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_EEPROM
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "EEPROM peripheral driver"
|
|
|
|
depends on HAS_PERIPH_EEPROM
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_EEPROM
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize EEPROM peripheral"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_EEPROM
|
2020-07-27 17:09:27 +02:00
|
|
|
|
|
|
|
rsource "Kconfig.flashpage"
|
|
|
|
|
|
|
|
rsource "Kconfig.gpio"
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_HWRNG
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "HWRNG peripheral driver"
|
|
|
|
depends on HAS_PERIPH_HWRNG
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_HWRNG
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize HWRNG peripheral"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_HWRNG
|
2020-07-27 17:09:27 +02:00
|
|
|
|
|
|
|
rsource "Kconfig.i2c"
|
|
|
|
|
2023-05-24 09:49:21 +02:00
|
|
|
config MODULE_PERIPH_PIO
|
|
|
|
bool "Programmable IO (PIO) peripheral driver"
|
|
|
|
depends on HAS_PERIPH_PIO
|
|
|
|
select MODULE_PERIPH_COMMON
|
|
|
|
|
|
|
|
config MODULE_PERIPH_INIT_PIO
|
|
|
|
bool "Auto initialize programmable IO (PIO) peripheral driver"
|
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_PIO
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_PM
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Power Management (PM) peripheral driver"
|
|
|
|
default y
|
|
|
|
depends on HAS_PERIPH_PM
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_PM
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize Power Management (PM) peripheral"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_PM
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2022-03-21 09:14:32 +01:00
|
|
|
config MODULE_PERIPH_PWM
|
|
|
|
bool "PWM peripheral driver"
|
|
|
|
depends on HAS_PERIPH_PWM
|
|
|
|
select MODULE_PERIPH_COMMON
|
|
|
|
|
|
|
|
config MODULE_PERIPH_INIT_PWM
|
|
|
|
bool "Auto initialize PWM peripheral"
|
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_PWM
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_QDEC
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Quadrature Decoder (QDEC) peripheral driver"
|
|
|
|
depends on HAS_PERIPH_QDEC
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_QDEC
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize Quadrature Decoder (QDEC) peripheral"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_QDEC
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2022-01-28 11:18:41 +01:00
|
|
|
rsource "Kconfig.leds"
|
2020-11-10 17:02:35 +01:00
|
|
|
rsource "Kconfig.rtc"
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_RTT
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "RTT peripheral driver"
|
|
|
|
depends on HAS_PERIPH_RTT
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2023-10-25 17:09:07 +02:00
|
|
|
config MODULE_PERIPH_FREQM
|
|
|
|
bool "Frequency Meter driver"
|
|
|
|
depends on HAS_PERIPH_FREQM
|
|
|
|
|
2021-03-04 20:04:11 +01:00
|
|
|
config MODULE_PERIPH_RTT_SET_COUNTER
|
|
|
|
bool "rtc_set_counter() implementation in the RTT peripheral driver"
|
|
|
|
depends on HAS_PERIPH_RTT_SET_COUNTER && MODULE_PERIPH_RTT
|
|
|
|
|
2021-09-17 10:24:08 +02:00
|
|
|
config MODULE_PERIPH_INIT_RTT_SET_COUNTER
|
|
|
|
bool "Auto initialize rtc_set_counter() with RTT"
|
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_RTT_SET_COUNTER
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_RTT
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize RTT peripheral"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_RTT
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2023-06-08 09:51:28 +02:00
|
|
|
rsource "Kconfig.sdmmc"
|
2020-07-27 17:09:27 +02:00
|
|
|
rsource "Kconfig.spi"
|
|
|
|
|
2020-11-13 14:58:04 +01:00
|
|
|
config MODULE_PERIPH_TEMPERATURE
|
|
|
|
bool "Temperature peripheral driver"
|
|
|
|
depends on HAS_PERIPH_TEMPERATURE
|
|
|
|
select MODULE_PERIPH_COMMON
|
|
|
|
|
|
|
|
config MODULE_PERIPH_INIT_TEMPERATURE
|
|
|
|
bool "Auto initialize temperature peripheral"
|
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_TEMPERATURE
|
|
|
|
|
2022-03-20 20:56:50 +01:00
|
|
|
rsource "Kconfig.timer"
|
2020-07-27 17:09:27 +02:00
|
|
|
rsource "Kconfig.uart"
|
2022-10-09 11:48:58 +02:00
|
|
|
rsource "Kconfig.usbdev"
|
2022-09-14 09:03:56 +02:00
|
|
|
|
2020-08-31 12:53:01 +02:00
|
|
|
endif # TEST_KCONFIG
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2021-10-13 09:46:21 +02:00
|
|
|
config HAVE_SHARED_PERIPH_RTT_PERIPH_RTC
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
The periph_rtc module or the periph_rtt module share hardware, thus,
|
|
|
|
only one can be selected.
|
|
|
|
|
2021-10-12 13:16:57 +02:00
|
|
|
rsource "Kconfig.vbat"
|
2020-08-31 12:53:01 +02:00
|
|
|
rsource "Kconfig.wdt"
|