diff --git a/drivers/ads101x/include/ads101x_params.h b/drivers/ads101x/include/ads101x_params.h index 89ac738f2c..8e7982ba35 100644 --- a/drivers/ads101x/include/ads101x_params.h +++ b/drivers/ads101x/include/ads101x_params.h @@ -38,7 +38,7 @@ extern "C" { #define ADS101X_PARAM_I2C (I2C_DEV(0)) #endif #ifndef ADS101X_PARAM_ADDR -#define ADS101X_PARAM_ADDR (ADS101X_I2C_ADDRESS) +#define ADS101X_PARAM_ADDR (CONFIG_ADS101X_I2C_ADDRESS) #endif #ifndef ADS101X_PARAM_MUX_GAIN #define ADS101X_PARAM_MUX_GAIN (ADS101X_AIN0_DIFFM_AIN1 \ diff --git a/drivers/include/ads101x.h b/drivers/include/ads101x.h index 76c38f043c..e3aef57d89 100644 --- a/drivers/include/ads101x.h +++ b/drivers/include/ads101x.h @@ -49,8 +49,8 @@ extern "C" { * * Address pin tied to: GND (0x48), Vcc (0x49), SDA (0x50), SCL (0x51) */ -#ifndef ADS101X_I2C_ADDRESS -#define ADS101X_I2C_ADDRESS (0x48) +#ifndef CONFIG_ADS101X_I2C_ADDRESS +#define CONFIG_ADS101X_I2C_ADDRESS (0x48) #endif /** @} */