mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 10:12:45 +01:00
drivers/adcxx1c: add module to Kconfig
This commit is contained in:
parent
e192857ee8
commit
6eecaef9dc
@ -22,6 +22,7 @@ endmenu # Peripherals drivers
|
||||
|
||||
menu "Sensor Device Drivers"
|
||||
rsource "ad7746/Kconfig"
|
||||
rsource "adcxx1c/Kconfig"
|
||||
rsource "ads101x/Kconfig"
|
||||
rsource "bmx055/Kconfig"
|
||||
rsource "fxos8700/Kconfig"
|
||||
|
40
drivers/adcxx1c/Kconfig
Normal file
40
drivers/adcxx1c/Kconfig
Normal file
@ -0,0 +1,40 @@
|
||||
# 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.
|
||||
#
|
||||
|
||||
choice
|
||||
bool "ADCXX1C Analog-to-Digital converter"
|
||||
depends on HAS_PERIPH_GPIO
|
||||
depends on HAS_PERIPH_GPIO_IRQ
|
||||
depends on HAS_PERIPH_I2C
|
||||
depends on TEST_KCONFIG
|
||||
optional
|
||||
help
|
||||
This driver works with adc081c, adc101c and adc121c models. Select one.
|
||||
|
||||
config MODULE_ADC081C
|
||||
bool "ADC081C"
|
||||
select MODULE_ADCXX1C
|
||||
|
||||
config MODULE_ADC101C
|
||||
bool "ADC101C"
|
||||
select MODULE_ADCXX1C
|
||||
|
||||
config MODULE_ADC121C
|
||||
bool "ADC121C"
|
||||
select MODULE_ADCXX1C
|
||||
|
||||
endchoice
|
||||
|
||||
config MODULE_ADCXX1C
|
||||
bool
|
||||
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
|
Loading…
Reference in New Issue
Block a user