From 211b86c54d299595e4392cf36cf7e28f577c3284 Mon Sep 17 00:00:00 2001 From: Akshai M Date: Thu, 30 Apr 2020 21:37:24 +0530 Subject: [PATCH] drivers/bmx055 : Add CONFIG_ Add CONFIG_ prefix to compile configurations --- drivers/bmx055/include/bmx055_params.h | 6 +++--- drivers/include/bmx055.h | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/bmx055/include/bmx055_params.h b/drivers/bmx055/include/bmx055_params.h index 0cedccf5e1..c4e20afc5c 100644 --- a/drivers/bmx055/include/bmx055_params.h +++ b/drivers/bmx055/include/bmx055_params.h @@ -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) diff --git a/drivers/include/bmx055.h b/drivers/include/bmx055.h index bb33fb955d..e86afa4486 100644 --- a/drivers/include/bmx055.h +++ b/drivers/include/bmx055.h @@ -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 /** @} */