diff --git a/drivers/Kconfig b/drivers/Kconfig index 40f11c8218..04c582a482 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -19,6 +19,7 @@ rsource "ads101x/Kconfig" rsource "bmx055/Kconfig" rsource "fxos8700/Kconfig" rsource "hdc1000/Kconfig" +rsource "l3g4200d/Kconfig" rsource "lpsxxx/Kconfig" rsource "mag3110/Kconfig" rsource "mma8x5x/Kconfig" diff --git a/drivers/include/l3g4200d.h b/drivers/include/l3g4200d.h index 6f8f4ac556..0a6f9d0385 100644 --- a/drivers/include/l3g4200d.h +++ b/drivers/include/l3g4200d.h @@ -44,10 +44,10 @@ /** * @brief Default address * - * The address depends on the status of SDO Pin. - * Default address corresponds to SD0 connected to GND. - * For more information on SerialBus Address, refer Section 5.1.1 - * I2C Operation on datasheet. + * The address depends on the status of SDO Pin. Default + * address corresponds to SDO connected to GND. For more + * information refer to the section 'I2C Operation' in + * the datasheet. */ #ifndef CONFIG_L3G4200D_DEFAULT_ADDRESS #define CONFIG_L3G4200D_DEFAULT_ADDRESS 0x68 diff --git a/drivers/l3g4200d/Kconfig b/drivers/l3g4200d/Kconfig new file mode 100644 index 0000000000..d9417d2b55 --- /dev/null +++ b/drivers/l3g4200d/Kconfig @@ -0,0 +1,25 @@ +# 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_L3G4200D + bool "Configure L3G4200D driver" + depends on MODULE_L3G4200D + help + Configure the L3G4200D driver using Kconfig. + +if KCONFIG_MODULE_L3G4200D + +config L3G4200D_DEFAULT_ADDRESS + hex "Default I2C address" + range 0x68 0x69 + default 0x68 + help + The address depends on the status of SDO Pin. Default + address corresponds to SDO connected to GND. For more + information refer to the section 'I2C Operation' in + the datasheet. + +endif # KCONFIG_MODULE_L3G4200D