1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/l3g4200d : Expose to Kconfig

Expose configurations to Kconfig.
This commit is contained in:
Akshai M 2020-04-30 23:35:11 +05:30
parent 5782c3bb0d
commit 21dd8f7555
3 changed files with 30 additions and 4 deletions

View File

@ -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"

View File

@ -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

25
drivers/l3g4200d/Kconfig Normal file
View File

@ -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