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:
parent
32694e0931
commit
b20e408854
@ -38,7 +38,7 @@ extern "C" {
|
|||||||
#define ADS101X_PARAM_I2C (I2C_DEV(0))
|
#define ADS101X_PARAM_I2C (I2C_DEV(0))
|
||||||
#endif
|
#endif
|
||||||
#ifndef ADS101X_PARAM_ADDR
|
#ifndef ADS101X_PARAM_ADDR
|
||||||
#define ADS101X_PARAM_ADDR (ADS101X_I2C_ADDRESS)
|
#define ADS101X_PARAM_ADDR (CONFIG_ADS101X_I2C_ADDRESS)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ADS101X_PARAM_MUX_GAIN
|
#ifndef ADS101X_PARAM_MUX_GAIN
|
||||||
#define ADS101X_PARAM_MUX_GAIN (ADS101X_AIN0_DIFFM_AIN1 \
|
#define ADS101X_PARAM_MUX_GAIN (ADS101X_AIN0_DIFFM_AIN1 \
|
||||||
|
@ -49,8 +49,8 @@ extern "C" {
|
|||||||
*
|
*
|
||||||
* Address pin tied to: GND (0x48), Vcc (0x49), SDA (0x50), SCL (0x51)
|
* Address pin tied to: GND (0x48), Vcc (0x49), SDA (0x50), SCL (0x51)
|
||||||
*/
|
*/
|
||||||
#ifndef ADS101X_I2C_ADDRESS
|
#ifndef CONFIG_ADS101X_I2C_ADDRESS
|
||||||
#define ADS101X_I2C_ADDRESS (0x48)
|
#define CONFIG_ADS101X_I2C_ADDRESS (0x48)
|
||||||
#endif
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user