mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/lpsxxx : Add CONFIG_
Add CONFIG_ prefix to LPSXXX_DEFAULT_ADDRESS
This commit is contained in:
parent
d03884d7b7
commit
db7ca7eed9
@ -48,8 +48,8 @@ extern "C" {
|
||||
* pad is connected to power supply, I2C address is 0x5C.
|
||||
* Refer to 'I2C Operation' section on the datasheet
|
||||
*/
|
||||
#ifndef LPSXXX_DEFAULT_ADDRESS
|
||||
#define LPSXXX_DEFAULT_ADDRESS (0x5d)
|
||||
#ifndef CONFIG_LPSXXX_DEFAULT_ADDRESS
|
||||
#define CONFIG_LPSXXX_DEFAULT_ADDRESS (0x5d)
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
|
@ -37,7 +37,7 @@ extern "C" {
|
||||
#define LPSXXX_PARAM_I2C I2C_DEV(0)
|
||||
#endif
|
||||
#ifndef LPSXXX_PARAM_ADDR
|
||||
#define LPSXXX_PARAM_ADDR (LPSXXX_DEFAULT_ADDRESS)
|
||||
#define LPSXXX_PARAM_ADDR (CONFIG_LPSXXX_DEFAULT_ADDRESS)
|
||||
#endif
|
||||
#ifndef LPSXXX_PARAM_RATE
|
||||
#define LPSXXX_PARAM_RATE (LPSXXX_DEFAULT_RATE)
|
||||
|
Loading…
Reference in New Issue
Block a user