From ac11288113912b073c5248dfe72506a972169874 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Fri, 30 Sep 2016 11:37:35 +0000 Subject: [PATCH] Updated LIS302DL and LIS3DSH demos git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9824 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32F4xx/SPI-LIS302DL/Makefile | 2 +- testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c | 4 ++-- testhal/STM32/STM32F4xx/SPI-LIS3DSH/Makefile | 2 +- testhal/STM32/STM32F4xx/SPI-LIS3DSH/main.c | 4 ++-- 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__)