From f39b320b5df64f8267ff5bd6a65a2a683245db68 Mon Sep 17 00:00:00 2001 From: Akshai M Date: Mon, 6 Apr 2020 12:21:45 +0530 Subject: [PATCH] drivers/include/opt3001.h : Compile Configs --- drivers/include/opt3001.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/drivers/include/opt3001.h b/drivers/include/opt3001.h index ed89010c3b..16264f6ada 100644 --- a/drivers/include/opt3001.h +++ b/drivers/include/opt3001.h @@ -49,14 +49,6 @@ extern "C" { #endif -/** - * @brief OPT3001 Default Address - * - * If set to 0x44 the corresponding ADDR PIN is GND. - */ -#ifndef OPT3001_I2C_ADDRESS -#define OPT3001_I2C_ADDRESS (0x45) -#endif /** * @name Conversion time @@ -66,6 +58,21 @@ extern "C" { #define OPT3001_CONVERSION_TIME_800_MS (0x0800) /**< Conversion time of 800ms */ /** @} */ +/** + * @defgroup drivers_opt3001_config OPT3001 Ambient Light Sensor driver compile configuration + * @ingroup config_drivers_sensors + * @{ + */ +/** + * @brief OPT3001 Default Address + * + * If set to 0x45 the ADDR PIN should be connected to VDD. + * For more information on SerialBus Address, refer section 7.3.4.1 in datasheet. + */ +#ifndef OPT3001_I2C_ADDRESS +#define OPT3001_I2C_ADDRESS (0x45) +#endif + /** * @brief OPT3001 Default conversion time * @@ -75,6 +82,7 @@ extern "C" { #ifndef OPT3001_CONVERSION_TIME #define OPT3001_CONVERSION_TIME OPT3001_CONVERSION_TIME_800_MS #endif +/** @} */ /** * @brief Parameters needed for device initialization