From 6eecaef9dcf89ef23eb31ee12480f0bc035b8f78 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 10:02:32 +0100 Subject: [PATCH] drivers/adcxx1c: add module to Kconfig --- drivers/Kconfig | 1 + drivers/adcxx1c/Kconfig | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 drivers/adcxx1c/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 6991a683d9..75a5c51d29 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -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" diff --git a/drivers/adcxx1c/Kconfig b/drivers/adcxx1c/Kconfig new file mode 100644 index 0000000000..be4f322b9f --- /dev/null +++ b/drivers/adcxx1c/Kconfig @@ -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