From ffc7764ef92cea527efefd9f24d3a8435e5cc361 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 4 Dec 2020 11:30:42 +0100 Subject: [PATCH] drivers/lis2dh12: add module to Kconfig --- drivers/Kconfig | 1 + drivers/lis2dh12/Kconfig | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 drivers/lis2dh12/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index ed9b46ae4f..46ce5e6ce2 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -79,6 +79,7 @@ rsource "itg320x/Kconfig" rsource "jc42/Kconfig" rsource "l3g4200d/Kconfig" rsource "lc709203f/Kconfig" +rsource "lis2dh12/Kconfig" rsource "lpsxxx/Kconfig" rsource "mag3110/Kconfig" rsource "mma8x5x/Kconfig" diff --git a/drivers/lis2dh12/Kconfig b/drivers/lis2dh12/Kconfig new file mode 100644 index 0000000000..57ab1d5c68 --- /dev/null +++ b/drivers/lis2dh12/Kconfig @@ -0,0 +1,36 @@ +# 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_LIS2DH12 + bool "LIS2DH12 Accelerometer" + depends on TEST_KCONFIG + +if MODULE_LIS2DH12 + +choice + bool "Device interface" + +config MODULE_LIS2DH12_I2C + bool "I2C" + depends on HAS_PERIPH_I2C + select MODULE_PERIPH_I2C + +config MODULE_LIS2DH12_SPI + bool "SPI" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_SPI + select MODULE_PERIPH_SPI + select MODULE_PERIPH_GPIO + +endchoice # Device interface + +config MODULE_LIS2DH12_INT + bool "Interrupt lines support" + depends on HAS_PERIPH_GPIO_IRQ + select MODULE_PERIPH_GPIO_IRQ + +endif # MODULE_LIS2DH12