1
0
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:
Akshai M 2020-05-01 11:57:43 +05:30
parent d03884d7b7
commit db7ca7eed9
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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)