mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
drivers/isl29020 : Expose to Kconfig
Expose configurations to Kconfig.
This commit is contained in:
parent
f01bbd3c58
commit
db96ebcbe1
@ -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 "isl29020/Kconfig"
|
||||||
rsource "l3g4200d/Kconfig"
|
rsource "l3g4200d/Kconfig"
|
||||||
rsource "lpsxxx/Kconfig"
|
rsource "lpsxxx/Kconfig"
|
||||||
rsource "mag3110/Kconfig"
|
rsource "mag3110/Kconfig"
|
||||||
|
@ -39,10 +39,9 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* @brief Default address
|
* @brief Default address
|
||||||
*
|
*
|
||||||
* The address depends on the status of A0 Pin.
|
* The address depends on the status of A0 Pin. Default address corresponds to
|
||||||
* Default address corresponds to A0 connected to GND.
|
* A0 connected to GND. For more information refer to the section 'I2C
|
||||||
* For more information on SerialBus Address, refer Section I2C
|
* Interface' in the datasheet.
|
||||||
* Interface on Page 3 of datasheet.
|
|
||||||
*/
|
*/
|
||||||
#ifndef CONFIG_ISL29020_DEFAULT_ADDRESS
|
#ifndef CONFIG_ISL29020_DEFAULT_ADDRESS
|
||||||
#define CONFIG_ISL29020_DEFAULT_ADDRESS 0x44
|
#define CONFIG_ISL29020_DEFAULT_ADDRESS 0x44
|
||||||
|
24
drivers/isl29020/Kconfig
Normal file
24
drivers/isl29020/Kconfig
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# 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_ISL29020
|
||||||
|
bool "Configure ISL29020 driver"
|
||||||
|
depends on MODULE_ISL29020
|
||||||
|
help
|
||||||
|
Configure the ISL29020 driver using Kconfig.
|
||||||
|
|
||||||
|
if KCONFIG_MODULE_ISL29020
|
||||||
|
|
||||||
|
config ISL29020_DEFAULT_ADDRESS
|
||||||
|
hex "Default I2C address"
|
||||||
|
range 0x44 0x45
|
||||||
|
default 0x44
|
||||||
|
help
|
||||||
|
The address depends on the status of A0 Pin. Default address
|
||||||
|
corresponds to A0 connected to GND. For more information refer to the
|
||||||
|
section 'I2C Interface' in the datasheet.
|
||||||
|
|
||||||
|
endif # KCONFIG_MODULE_ISL29020
|
Loading…
Reference in New Issue
Block a user