From 0bc7952e30861102fbecd308d8f0e75737ced03a Mon Sep 17 00:00:00 2001 From: Akshai M Date: Tue, 21 Apr 2020 16:56:07 +0530 Subject: [PATCH] drivers/fxos8700 : Expose to Kconfig Expose Configurations to Kconfig --- drivers/Kconfig.net | 1 + drivers/fxos8700/Kconfig | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 drivers/fxos8700/Kconfig diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index 973d928b92..b04415f010 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -19,6 +19,7 @@ endmenu # Network Device Drivers menu "Sensor Device Drivers" rsource "ads101x/Kconfig" +rsource "fxos8700/Kconfig" rsource "hdc1000/Kconfig" rsource "mag3110/Kconfig" rsource "mma8x5x/Kconfig" diff --git a/drivers/fxos8700/Kconfig b/drivers/fxos8700/Kconfig new file mode 100644 index 0000000000..36a373e0e4 --- /dev/null +++ b/drivers/fxos8700/Kconfig @@ -0,0 +1,21 @@ +# Copyright (c) 2020 Freie Universitaet Berlin +# +# 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 KCONFIG_MODULE_FXOS8700 + bool "Configure FXOS8700 driver" + depends on MODULE_FXOS8700 + help + Configure the FXOS8700 driver using Kconfig. + +if KCONFIG_MODULE_FXOS8700 + +config FXOS8700_USE_ACC_RAW_VALUES + bool "Enable raw ADC readings" + help + Enable this to return raw ADC readings. + By default measurements are converted to mg. + +endif # KCONFIG_MODULE_FXOS8700