From 008582aa6f36cd5425f6803d97584405fbaa22c4 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Mon, 16 Nov 2020 09:58:18 +0100 Subject: [PATCH] drivers/bmx055: add module to Kconfig --- drivers/bmx055/Kconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/bmx055/Kconfig b/drivers/bmx055/Kconfig index 049375ec47..1fd4f8e475 100644 --- a/drivers/bmx055/Kconfig +++ b/drivers/bmx055/Kconfig @@ -1,9 +1,18 @@ # Copyright (c) 2020 Freie Universitaet Berlin +# 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. # + +config MODULE_BMX055 + bool "BMX055 9-axis sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + default y if HAVE_BMX055 && MODULE_SAUL_DEFAULT + menuconfig KCONFIG_USEMODULE_BMX055 bool "Configure BMX055 driver" depends on USEMODULE_BMX055 @@ -40,3 +49,8 @@ config BMX055_GYRO_ADDR_DEFAULT Circuit (I²C)' in the datasheet. endif # KCONFIG_USEMODULE_BMX055 + +config HAVE_BMX055 + bool + help + Indicates that a BMX055 9-axis sensor is present.