drivers/l3g4200d : Expose to Kconfig
Expose configurations to Kconfig.
This commit is contained in:
parent
5782c3bb0d
commit
21dd8f7555
@ -19,6 +19,7 @@ rsource "ads101x/Kconfig"
|
|||||||
rsource "bmx055/Kconfig"
|
rsource "bmx055/Kconfig"
|
||||||
rsource "fxos8700/Kconfig"
|
rsource "fxos8700/Kconfig"
|
||||||
rsource "hdc1000/Kconfig"
|
rsource "hdc1000/Kconfig"
|
||||||
|
rsource "l3g4200d/Kconfig"
|
||||||
rsource "lpsxxx/Kconfig"
|
rsource "lpsxxx/Kconfig"
|
||||||
rsource "mag3110/Kconfig"
|
rsource "mag3110/Kconfig"
|
||||||
rsource "mma8x5x/Kconfig"
|
rsource "mma8x5x/Kconfig"
|
||||||
|
|||||||
@ -44,10 +44,10 @@
|
|||||||
/**
|
/**
|
||||||
* @brief Default address
|
* @brief Default address
|
||||||
*
|
*
|
||||||
* The address depends on the status of SDO Pin.
|
* The address depends on the status of SDO Pin. Default
|
||||||
* Default address corresponds to SD0 connected to GND.
|
* address corresponds to SDO connected to GND. For more
|
||||||
* For more information on SerialBus Address, refer Section 5.1.1
|
* information refer to the section 'I2C Operation' in
|
||||||
* I2C Operation on datasheet.
|
* the datasheet.
|
||||||
*/
|
*/
|
||||||
#ifndef CONFIG_L3G4200D_DEFAULT_ADDRESS
|
#ifndef CONFIG_L3G4200D_DEFAULT_ADDRESS
|
||||||
#define CONFIG_L3G4200D_DEFAULT_ADDRESS 0x68
|
#define CONFIG_L3G4200D_DEFAULT_ADDRESS 0x68
|
||||||
|
|||||||
25
drivers/l3g4200d/Kconfig
Normal file
25
drivers/l3g4200d/Kconfig
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user