aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F4xx')
-rw-r--r--testhal/STM32/STM32F4xx/SPI-LIS302DL/Makefile2
-rw-r--r--testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c4
-rw-r--r--testhal/STM32/STM32F4xx/SPI-LIS3DSH/Makefile2
-rw-r--r--testhal/STM32/STM32F4xx/SPI-LIS3DSH/main.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/testhal/STM32/STM32F4xx/SPI-LIS302DL/Makefile b/testhal/STM32/STM32F4xx/SPI-LIS302DL/Makefile
index 13a8fe6f5..6a70d7b0e 100644
--- a/testhal/STM32/STM32F4xx/SPI-LIS302DL/Makefile
+++ b/testhal/STM32/STM32F4xx/SPI-LIS302DL/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 \
- -DLIS302DL_USE_ADVANCED=0
+ -DLIS302DL_USE_ADVANCED=0 -DLIS302DL_SHARED_SPI=0
# Define ASM defines here
UADEFS =
diff --git a/testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c b/testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c
index 2ce99ef8e..a72814c3d 100644
--- a/testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c
+++ b/testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c
@@ -48,8 +48,8 @@ static const SPIConfig spicfg = {
static LIS302DLConfig l3gd20cfg = {
&SPID1, /* Pointer to SPI Driver.*/
&spicfg, /* Pointer to SPI Configuration.*/
- {0, 0, 0}, /* Use default sensitivity.*/
- {0, 0, 0}, /* Use default bias.*/
+ NULL, /* Use default sensitivity.*/
+ NULL, /* Use default bias.*/
LIS302DL_FS_2G, /* Full scale value.*/
LIS302DL_ODR_100HZ, /* Output data rate.*/
#if LIS302DL_USE_ADVANCED || defined(__DOXYGEN__)
diff --git a/testhal/STM32/STM32F4xx/SPI-LIS3DSH/Makefile b/testhal/STM32/STM32F4xx/SPI-LIS3DSH/Makefile
index 28b3b4b69..de0645ee7 100644
--- a/testhal/STM32/STM32F4xx/SPI-LIS3DSH/Makefile
+++ b/testhal/STM32/STM32F4xx/SPI-LIS3DSH/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 \
- -DLIS3DSH_USE_ADVANCED=0
+ -DLIS3DSH_USE_ADVANCED=0 -DLIS3DSH_SHARED_SPI=0
# Define ASM defines here
UADEFS =
diff --git a/testhal/STM32/STM32F4xx/SPI-LIS3DSH/main.c b/testhal/STM32/STM32F4xx/SPI-LIS3DSH/main.c
index 018eb5d55..b3a818137 100644
--- a/testhal/STM32/STM32F4xx/SPI-LIS3DSH/main.c
+++ b/testhal/STM32/STM32F4xx/SPI-LIS3DSH/main.c
@@ -48,8 +48,8 @@ static const SPIConfig spicfg = {
static LIS3DSHConfig lis3dshcfg = {
&SPID1, /* Pointer to SPI Driver.*/
&spicfg, /* Pointer to SPI Configuration.*/
- {0, 0, 0}, /* Use default sensitivity.*/
- {0, 0, 0}, /* Use default bias.*/
+ NULL, /* Use default sensitivity.*/
+ NULL, /* Use default bias.*/
LIS3DSH_FS_2G, /* Full scale value.*/
LIS3DSH_ODR_100HZ, /* Output data rate.*/
#if LIS3DSH_USE_ADVANCED || defined(__DOXYGEN__)