From c59e17ea1956141d9555724660229b462f1ff383 Mon Sep 17 00:00:00 2001 From: Akshai M Date: Tue, 7 Apr 2020 22:24:21 +0530 Subject: [PATCH] drivers/include/bmx055.h : Expose Parameters Add ifndef and Expose Compile Parameters to Doxyen --- drivers/include/bmx055.h | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/drivers/include/bmx055.h b/drivers/include/bmx055.h index 9eca87ee26..bb33fb955d 100644 --- a/drivers/include/bmx055.h +++ b/drivers/include/bmx055.h @@ -36,12 +36,39 @@ extern "C" { #endif /** - * @name The sensors default I2C addresses + * @defgroup drivers_bmx055_config BMX055 sensor driver compile configuration + * @ingroup config_drivers_sensors * @{ */ +/** + * @brief Magnetometer default address + * + * The address depends on part number of SDO1, SDO2 and CSB3. + * For more information on SerialBus Address, refer section 11.2 in datasheet. + */ +#ifndef BMX055_MAG_ADDR_DEFAULT #define BMX055_MAG_ADDR_DEFAULT (0x10U) +#endif + +/** + * @brief Accelerometer default address + * + * The address depends on part number of SDO1, SDO2 and CSB3. + * For more information on SerialBus Address, refer section 11.2 in datasheet. + */ +#ifndef BMX055_ACC_ADDR_DEFAULT #define BMX055_ACC_ADDR_DEFAULT (0x18U) +#endif + +/** + * @brief Gyroscope default address + * + * The address depends on part number of SDO1, SDO2 and CSB3. + * For more information on SerialBus Address, refer section 11.2 in datasheet. + */ +#ifndef BMX055_GYRO_ADDR_DEFAULT #define BMX055_GYRO_ADDR_DEFAULT (0x68U) +#endif /** @} */ /**