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

drivers/mag3110 : Add CONFIG_

Add CONFIG_ Prefix for MAG3110_I2C_ADDRESS
This commit is contained in:
Akshai M 2020-04-21 17:31:22 +05:30
parent c2c32a42f5
commit 9c052a6288
2 changed files with 3 additions and 3 deletions

View File

@ -65,8 +65,8 @@ enum {
* The address depends on part number of MAG3110.
* For more information on SerialBus Address, refer Table 1 in Technical datasheet(MAG3110).
*/
#ifndef MAG3110_I2C_ADDRESS
#define MAG3110_I2C_ADDRESS 0x0E
#ifndef CONFIG_MAG3110_I2C_ADDRESS
#define CONFIG_MAG3110_I2C_ADDRESS 0x0E
#endif
/** @} */

View File

@ -36,7 +36,7 @@ extern "C" {
#define MAG3110_PARAM_I2C (I2C_DEV(0))
#endif
#ifndef MAG3110_PARAM_ADDR
#define MAG3110_PARAM_ADDR (MAG3110_I2C_ADDRESS)
#define MAG3110_PARAM_ADDR (CONFIG_MAG3110_I2C_ADDRESS)
#endif
#ifndef MAG3110_PARAM_OFFSET
#define MAG3110_PARAM_OFFSET { 0, 0, 0 }