drivers/bmx055 : Add CONFIG_

Add CONFIG_ prefix to compile configurations
This commit is contained in:
Akshai M 2020-04-30 21:37:24 +05:30
parent d03884d7b7
commit 211b86c54d
2 changed files with 9 additions and 9 deletions

View File

@ -33,13 +33,13 @@ extern "C" {
#define BMX055_PARAM_I2C I2C_DEV(0)
#endif
#ifndef BMX055_PARAM_MAG_ADDR
#define BMX055_PARAM_MAG_ADDR BMX055_MAG_ADDR_DEFAULT
#define BMX055_PARAM_MAG_ADDR CONFIG_BMX055_MAG_ADDR_DEFAULT
#endif
#ifndef BMX055_PARAM_ACC_ADDR
#define BMX055_PARAM_ACC_ADDR BMX055_ACC_ADDR_DEFAULT
#define BMX055_PARAM_ACC_ADDR CONFIG_BMX055_ACC_ADDR_DEFAULT
#endif
#ifndef BMX055_PARAM_GYRO_ADDR
#define BMX055_PARAM_GYRO_ADDR BMX055_GYRO_ADDR_DEFAULT
#define BMX055_PARAM_GYRO_ADDR CONFIG_BMX055_GYRO_ADDR_DEFAULT
#endif
#ifndef BMX055_PARAM_INT1
#define BMX055_PARAM_INT1 GPIO_PIN(0, 0)

View File

@ -46,8 +46,8 @@ extern "C" {
* The address depends on part number of SDO1, SDO2 and CSB3.
* For more information on SerialBus Address, refer section 11.2 in datasheet.
*/
#ifndef BMX055_MAG_ADDR_DEFAULT
#define BMX055_MAG_ADDR_DEFAULT (0x10U)
#ifndef CONFIG_BMX055_MAG_ADDR_DEFAULT
#define CONFIG_BMX055_MAG_ADDR_DEFAULT (0x10U)
#endif
/**
@ -56,8 +56,8 @@ extern "C" {
* The address depends on part number of SDO1, SDO2 and CSB3.
* For more information on SerialBus Address, refer section 11.2 in datasheet.
*/
#ifndef BMX055_ACC_ADDR_DEFAULT
#define BMX055_ACC_ADDR_DEFAULT (0x18U)
#ifndef CONFIG_BMX055_ACC_ADDR_DEFAULT
#define CONFIG_BMX055_ACC_ADDR_DEFAULT (0x18U)
#endif
/**
@ -66,8 +66,8 @@ extern "C" {
* The address depends on part number of SDO1, SDO2 and CSB3.
* For more information on SerialBus Address, refer section 11.2 in datasheet.
*/
#ifndef BMX055_GYRO_ADDR_DEFAULT
#define BMX055_GYRO_ADDR_DEFAULT (0x68U)
#ifndef CONFIG_BMX055_GYRO_ADDR_DEFAULT
#define CONFIG_BMX055_GYRO_ADDR_DEFAULT (0x68U)
#endif
/** @} */