diff --git a/drivers/include/mma8x5x.h b/drivers/include/mma8x5x.h index 4bbd38d446..60fbb2dcab 100644 --- a/drivers/include/mma8x5x.h +++ b/drivers/include/mma8x5x.h @@ -51,8 +51,8 @@ extern "C" { * The address value depends on the state of SA0 Address Pin in the case of MMA845x series. * For more details refer Table 1 in datasheet (MMA8451Q/MMA8452Q/MMA8453Q) */ -#ifndef MMA8X5X_I2C_ADDRESS -#define MMA8X5X_I2C_ADDRESS 0x1D +#ifndef CONFIG_MMA8X5X_I2C_ADDRESS +#define CONFIG_MMA8X5X_I2C_ADDRESS 0x1D #endif /** @} */ diff --git a/drivers/mma8x5x/include/mma8x5x_params.h b/drivers/mma8x5x/include/mma8x5x_params.h index e2bc239691..2c9e4ab031 100644 --- a/drivers/mma8x5x/include/mma8x5x_params.h +++ b/drivers/mma8x5x/include/mma8x5x_params.h @@ -35,7 +35,7 @@ extern "C" { #define MMA8X5X_PARAM_I2C (I2C_DEV(0)) #endif #ifndef MMA8X5X_PARAM_ADDR -#define MMA8X5X_PARAM_ADDR (MMA8X5X_I2C_ADDRESS) +#define MMA8X5X_PARAM_ADDR (CONFIG_MMA8X5X_I2C_ADDRESS) #endif #ifndef MMA8X5X_PARAM_RATE #define MMA8X5X_PARAM_RATE (MMA8X5X_RATE_200HZ)