Skip to content

Commit

Permalink
drivers/bmx055 : Add CONFIG_
Browse files Browse the repository at this point in the history
Add CONFIG_ prefix to compile configurations
  • Loading branch information
akshaim committed May 4, 2020
1 parent d03884d commit 211b86c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions drivers/bmx055/include/bmx055_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 6 additions & 6 deletions drivers/include/bmx055.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand All @@ -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

/**
Expand All @@ -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
/** @} */

Expand Down

0 comments on commit 211b86c

Please sign in to comment.