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

drivers/ads101x : Add CONFIG_

Add CONFIG_ Prefix for configuring the Compile time macros
This commit is contained in:
Akshai M 2020-04-16 14:55:11 +05:30
parent 32694e0931
commit b20e408854
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ extern "C" {
#define ADS101X_PARAM_I2C (I2C_DEV(0))
#endif
#ifndef ADS101X_PARAM_ADDR
#define ADS101X_PARAM_ADDR (ADS101X_I2C_ADDRESS)
#define ADS101X_PARAM_ADDR (CONFIG_ADS101X_I2C_ADDRESS)
#endif
#ifndef ADS101X_PARAM_MUX_GAIN
#define ADS101X_PARAM_MUX_GAIN (ADS101X_AIN0_DIFFM_AIN1 \

View File

@ -49,8 +49,8 @@ extern "C" {
*
* Address pin tied to: GND (0x48), Vcc (0x49), SDA (0x50), SCL (0x51)
*/
#ifndef ADS101X_I2C_ADDRESS
#define ADS101X_I2C_ADDRESS (0x48)
#ifndef CONFIG_ADS101X_I2C_ADDRESS
#define CONFIG_ADS101X_I2C_ADDRESS (0x48)
#endif
/** @} */