diff options
Diffstat (limited to 'testhal/STM32')
-rw-r--r-- | testhal/STM32/STM32F4xx/I2C-LPS25H/Makefile | 2 | ||||
-rw-r--r-- | testhal/STM32/STM32F4xx/I2C-LPS25H/main.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/testhal/STM32/STM32F4xx/I2C-LPS25H/Makefile b/testhal/STM32/STM32F4xx/I2C-LPS25H/Makefile index 057c420fb..6593f01be 100644 --- a/testhal/STM32/STM32F4xx/I2C-LPS25H/Makefile +++ b/testhal/STM32/STM32F4xx/I2C-LPS25H/Makefile @@ -201,7 +201,7 @@ CPPWARN = -Wall -Wextra -Wundef # List all user C define here, like -D_DEBUG=1
UDEFS = -DCHPRINTF_USE_FLOAT=1 -DSHELL_CMD_TEST_ENABLED=0 \
- -DLPS25H_USE_ADVANCED=0
+ -DLPS25H_USE_ADVANCED=1 -DLPS25H_SHARED_I2C=1
# Define ASM defines here
UADEFS =
diff --git a/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c b/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c index c31fef938..b708fe6d2 100644 --- a/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c +++ b/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c @@ -42,8 +42,8 @@ static const I2CConfig i2ccfg = { static const LPS25HConfig lps25hcfg = {
&I2CD1,
&i2ccfg,
- 0, /* Use default sensitivity.*/
- 0, /* Use default bias.*/
+ NULL, /* Use default sensitivity.*/
+ NULL, /* Use default bias.*/
LPS25H_SAD_VCC, /* SA0 connected to VCC */
LPS25H_ODR_7HZ, /* Output data rate 7 Hz.*/
#if LPS25H_USE_ADVANCED || defined(__DOXYGEN__)
|