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

drivers/isl29020 : Expose to Kconfig

Expose configurations to Kconfig.
This commit is contained in:
Akshai M 2020-04-30 23:01:55 +05:30
parent f01bbd3c58
commit db96ebcbe1
3 changed files with 28 additions and 4 deletions

View File

@ -19,6 +19,7 @@ rsource "ads101x/Kconfig"
rsource "bmx055/Kconfig"
rsource "fxos8700/Kconfig"
rsource "hdc1000/Kconfig"
rsource "isl29020/Kconfig"
rsource "l3g4200d/Kconfig"
rsource "lpsxxx/Kconfig"
rsource "mag3110/Kconfig"

View File

@ -39,10 +39,9 @@ extern "C" {
/**
* @brief Default address
*
* The address depends on the status of A0 Pin.
* Default address corresponds to A0 connected to GND.
* For more information on SerialBus Address, refer Section I2C
* Interface on Page 3 of datasheet.
* 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.
*/
#ifndef CONFIG_ISL29020_DEFAULT_ADDRESS
#define CONFIG_ISL29020_DEFAULT_ADDRESS 0x44

24
drivers/isl29020/Kconfig Normal file
View 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