mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/bmx055 : Expose to Kconfig
Expose configurations to Kconfig
This commit is contained in:
parent
211b86c54d
commit
9ef4f30c5e
@ -14,6 +14,7 @@ rsource "Kconfig.net"
|
|||||||
|
|
||||||
menu "Sensor Device Drivers"
|
menu "Sensor Device Drivers"
|
||||||
rsource "ads101x/Kconfig"
|
rsource "ads101x/Kconfig"
|
||||||
|
rsource "bmx055/Kconfig"
|
||||||
rsource "fxos8700/Kconfig"
|
rsource "fxos8700/Kconfig"
|
||||||
rsource "hdc1000/Kconfig"
|
rsource "hdc1000/Kconfig"
|
||||||
rsource "mag3110/Kconfig"
|
rsource "mag3110/Kconfig"
|
||||||
|
42
drivers/bmx055/Kconfig
Normal file
42
drivers/bmx055/Kconfig
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# 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_BMX055
|
||||||
|
bool "Configure BMX055 driver"
|
||||||
|
depends on MODULE_BMX055
|
||||||
|
help
|
||||||
|
Configure the BMX055 driver using Kconfig.
|
||||||
|
|
||||||
|
if KCONFIG_MODULE_BMX055
|
||||||
|
|
||||||
|
config BMX055_MAG_ADDR_DEFAULT
|
||||||
|
hex "I2C Address of magnetometer"
|
||||||
|
range 0x10 0x13
|
||||||
|
default 0x10
|
||||||
|
help
|
||||||
|
The address depends on the state of SDO1, SDO2 and CSB3 pins.
|
||||||
|
For more information refer to the section 'Inter-Integrated
|
||||||
|
Circuit (I²C)' in the datasheet.
|
||||||
|
|
||||||
|
config BMX055_ACC_ADDR_DEFAULT
|
||||||
|
hex "I2C Address of accelerometer"
|
||||||
|
range 0x18 0x19
|
||||||
|
default 0x18
|
||||||
|
help
|
||||||
|
The address depends on the state of SDO1, SDO2 and CSB3 pins.
|
||||||
|
For more information refer to the section 'Inter-Integrated
|
||||||
|
Circuit (I²C)' in the datasheet.
|
||||||
|
|
||||||
|
config BMX055_GYRO_ADDR_DEFAULT
|
||||||
|
hex "I2C Address of gyroscope"
|
||||||
|
range 0x68 0x69
|
||||||
|
default 0x68
|
||||||
|
help
|
||||||
|
The address depends on the state of SDO1, SDO2 and CSB3 pins.
|
||||||
|
For more information refer to the section 'Inter-Integrated
|
||||||
|
Circuit (I²C)' in the datasheet.
|
||||||
|
|
||||||
|
endif # KCONFIG_MODULE_BMX055
|
@ -43,8 +43,9 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* @brief Magnetometer default address
|
* @brief Magnetometer default address
|
||||||
*
|
*
|
||||||
* The address depends on part number of SDO1, SDO2 and CSB3.
|
* The address depends on the state of SDO1, SDO2 and CSB3 pins.
|
||||||
* For more information on SerialBus Address, refer section 11.2 in datasheet.
|
* For more information refer to the section 'Inter-Integrated
|
||||||
|
* Circuit (I²C)' in the datasheet.
|
||||||
*/
|
*/
|
||||||
#ifndef CONFIG_BMX055_MAG_ADDR_DEFAULT
|
#ifndef CONFIG_BMX055_MAG_ADDR_DEFAULT
|
||||||
#define CONFIG_BMX055_MAG_ADDR_DEFAULT (0x10U)
|
#define CONFIG_BMX055_MAG_ADDR_DEFAULT (0x10U)
|
||||||
@ -53,8 +54,9 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* @brief Accelerometer default address
|
* @brief Accelerometer default address
|
||||||
*
|
*
|
||||||
* The address depends on part number of SDO1, SDO2 and CSB3.
|
* The address depends on the state of SDO1, SDO2 and CSB3 pins.
|
||||||
* For more information on SerialBus Address, refer section 11.2 in datasheet.
|
* For more information refer to the section 'Inter-Integrated
|
||||||
|
* Circuit (I²C)' in the datasheet.
|
||||||
*/
|
*/
|
||||||
#ifndef CONFIG_BMX055_ACC_ADDR_DEFAULT
|
#ifndef CONFIG_BMX055_ACC_ADDR_DEFAULT
|
||||||
#define CONFIG_BMX055_ACC_ADDR_DEFAULT (0x18U)
|
#define CONFIG_BMX055_ACC_ADDR_DEFAULT (0x18U)
|
||||||
@ -63,8 +65,9 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* @brief Gyroscope default address
|
* @brief Gyroscope default address
|
||||||
*
|
*
|
||||||
* The address depends on part number of SDO1, SDO2 and CSB3.
|
* The address depends on the state of SDO1, SDO2 and CSB3 pins.
|
||||||
* For more information on SerialBus Address, refer section 11.2 in datasheet.
|
* For more information refer to the section 'Inter-Integrated
|
||||||
|
* Circuit (I²C)' in the datasheet.
|
||||||
*/
|
*/
|
||||||
#ifndef CONFIG_BMX055_GYRO_ADDR_DEFAULT
|
#ifndef CONFIG_BMX055_GYRO_ADDR_DEFAULT
|
||||||
#define CONFIG_BMX055_GYRO_ADDR_DEFAULT (0x68U)
|
#define CONFIG_BMX055_GYRO_ADDR_DEFAULT (0x68U)
|
||||||
|
Loading…
Reference in New Issue
Block a user