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

drivers/mag3110 : Expose to Kconfig

Expose Configurations to Kconfig

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
This commit is contained in:
Akshai M 2020-04-21 17:56:07 +05:30
parent 9c052a6288
commit fc3ff2a9d9
2 changed files with 24 additions and 0 deletions

View File

@ -15,5 +15,6 @@ endmenu # Network Device Drivers
menu "Sensor Device Drivers"
rsource "ads101x/Kconfig"
rsource "hdc1000/Kconfig"
rsource "mag3110/Kconfig"
rsource "mma8x5x/Kconfig"
endmenu # Sensor Device Drivers

23
drivers/mag3110/Kconfig Normal file
View File

@ -0,0 +1,23 @@
# 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_MAG3110
bool "Configure MAG3110 driver"
depends on MODULE_MAG3110
help
Configure the MAG3110 driver using Kconfig.
if KCONFIG_MODULE_MAG3110
config MAG3110_I2C_ADDRESS
hex "I2C default address"
range 0x0E 0x0F
default 0x0E
help
The address depends on part number of MAG3110.
For more information refer to the datasheet.
endif # KCONFIG_MODULE_MAG3110