1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/mma8x5x : Add CONFIG_

Add CONFIG_ Prefix for CONFIG_MMA8X5X_I2C_ADDRESS
This commit is contained in:
Akshai M 2020-04-22 20:10:45 +05:30
parent 98fa7414a0
commit 7e3096eae1
2 changed files with 3 additions and 3 deletions

View File

@ -51,8 +51,8 @@ extern "C" {
* The address value depends on the state of SA0 Address Pin in the case of MMA845x series. * 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) * For more details refer Table 1 in datasheet (MMA8451Q/MMA8452Q/MMA8453Q)
*/ */
#ifndef MMA8X5X_I2C_ADDRESS #ifndef CONFIG_MMA8X5X_I2C_ADDRESS
#define MMA8X5X_I2C_ADDRESS 0x1D #define CONFIG_MMA8X5X_I2C_ADDRESS 0x1D
#endif #endif
/** @} */ /** @} */

View File

@ -35,7 +35,7 @@ extern "C" {
#define MMA8X5X_PARAM_I2C (I2C_DEV(0)) #define MMA8X5X_PARAM_I2C (I2C_DEV(0))
#endif #endif
#ifndef MMA8X5X_PARAM_ADDR #ifndef MMA8X5X_PARAM_ADDR
#define MMA8X5X_PARAM_ADDR (MMA8X5X_I2C_ADDRESS) #define MMA8X5X_PARAM_ADDR (CONFIG_MMA8X5X_I2C_ADDRESS)
#endif #endif
#ifndef MMA8X5X_PARAM_RATE #ifndef MMA8X5X_PARAM_RATE
#define MMA8X5X_PARAM_RATE (MMA8X5X_RATE_200HZ) #define MMA8X5X_PARAM_RATE (MMA8X5X_RATE_200HZ)