1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/adcxx1c/Kconfig
2022-03-02 14:03:28 +01:00

62 lines
1.4 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 MODULE_ADCXX1C
bool
prompt "ADCXX1C Analog-to-Digital converter" if !(SAUL_DEFAULT && HAVE_ADCXX1C)
default SAUL_DEFAULT && HAVE_ADCXX1C
depends on HAS_PERIPH_GPIO
depends on HAS_PERIPH_GPIO_IRQ
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_GPIO
select MODULE_PERIPH_GPIO_IRQ
select MODULE_PERIPH_I2C
choice ADCXX1C_VARIANT
bool "Variants"
depends on MODULE_ADCXX1C
default MODULE_ADC081C if HAVE_ADC081C
default MODULE_ADC101C if HAVE_ADC101C
default MODULE_ADC121C if HAVE_ADC121C
help
This driver works with adc081c, adc101c and adc121c models. Select one.
config MODULE_ADC081C
bool "ADC081C"
config MODULE_ADC101C
bool "ADC101C"
config MODULE_ADC121C
bool "ADC121C"
endchoice
config HAVE_ADCXX1C
bool
help
Indicates that ADCXX1C Analog-to-Digital is present.
config HAVE_ADC081C
bool
select HAVE_ADCXX1C
help
Indicates that ADC081C Analog-to-Digital is present.
config HAVE_ADC101C
bool
select HAVE_ADCXX1C
help
Indicates that ADC101C Analog-to-Digital is present.
config HAVE_ADC121C
bool
select HAVE_ADCXX1C
help
Indicates that ADC121C Analog-to-Digital is present.