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:
parent
c2c32a42f5
commit
9c052a6288
@ -65,8 +65,8 @@ enum {
|
|||||||
* The address depends on part number of MAG3110.
|
* The address depends on part number of MAG3110.
|
||||||
* For more information on SerialBus Address, refer Table 1 in Technical datasheet(MAG3110).
|
* For more information on SerialBus Address, refer Table 1 in Technical datasheet(MAG3110).
|
||||||
*/
|
*/
|
||||||
#ifndef MAG3110_I2C_ADDRESS
|
#ifndef CONFIG_MAG3110_I2C_ADDRESS
|
||||||
#define MAG3110_I2C_ADDRESS 0x0E
|
#define CONFIG_MAG3110_I2C_ADDRESS 0x0E
|
||||||
#endif
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ extern "C" {
|
|||||||
#define MAG3110_PARAM_I2C (I2C_DEV(0))
|
#define MAG3110_PARAM_I2C (I2C_DEV(0))
|
||||||
#endif
|
#endif
|
||||||
#ifndef MAG3110_PARAM_ADDR
|
#ifndef MAG3110_PARAM_ADDR
|
||||||
#define MAG3110_PARAM_ADDR (MAG3110_I2C_ADDRESS)
|
#define MAG3110_PARAM_ADDR (CONFIG_MAG3110_I2C_ADDRESS)
|
||||||
#endif
|
#endif
|
||||||
#ifndef MAG3110_PARAM_OFFSET
|
#ifndef MAG3110_PARAM_OFFSET
|
||||||
#define MAG3110_PARAM_OFFSET { 0, 0, 0 }
|
#define MAG3110_PARAM_OFFSET { 0, 0, 0 }
|
||||||
|
Loading…
Reference in New Issue
Block a user