diff --git a/drivers/include/tcs37727.h b/drivers/include/tcs37727.h index a9b228bce3ca..a435f4578beb 100644 --- a/drivers/include/tcs37727.h +++ b/drivers/include/tcs37727.h @@ -47,10 +47,12 @@ extern "C" * @{ */ /** - * @brief Default RGBC integration time. + * @brief Default RGBC integration time in microseconds. + * + * Refer section "RGBC Time Register" in datasheet for more information. */ -#ifndef TCS37727_ATIME_DEFAULT -#define TCS37727_ATIME_DEFAULT 200000 +#ifndef CONFIG_TCS37727_ATIME_DEFAULT +#define CONFIG_TCS37727_ATIME_DEFAULT 200000 #endif /** @} */ diff --git a/drivers/tcs37727/include/tcs37727_params.h b/drivers/tcs37727/include/tcs37727_params.h index a3a6a9ba847d..664481caaecc 100644 --- a/drivers/tcs37727/include/tcs37727_params.h +++ b/drivers/tcs37727/include/tcs37727_params.h @@ -38,7 +38,7 @@ extern "C" { #define TCS37727_PARAM_ADDR (TCS37727_I2C_ADDRESS) #endif #ifndef TCS37727_PARAM_ATIME -#define TCS37727_PARAM_ATIME (TCS37727_ATIME_DEFAULT) +#define TCS37727_PARAM_ATIME (CONFIG_TCS37727_ATIME_DEFAULT) #endif #ifndef TCS37727_PARAMS