aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/SPI-LIS3DSH
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-09-30 11:37:35 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-09-30 11:37:35 +0000
commitac11288113912b073c5248dfe72506a972169874 (patch)
tree3430bd04a81f771b46237b0ded906d5b2b4e5b8b /testhal/STM32/STM32F4xx/SPI-LIS3DSH
parenta3728946f8a57b3f4bbc1642d082866517f8038b (diff)
downloadChibiOS-ac11288113912b073c5248dfe72506a972169874.tar.gz
ChibiOS-ac11288113912b073c5248dfe72506a972169874.tar.bz2
ChibiOS-ac11288113912b073c5248dfe72506a972169874.zip
Updated LIS302DL and LIS3DSH demos
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9824 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F4xx/SPI-LIS3DSH')
-rw-r--r--testhal/STM32/STM32F4xx/SPI-LIS3DSH/Makefile2
-rw-r--r--testhal/STM32/STM32F4xx/SPI-LIS3DSH/main.c4
2 files changed, 3 insertions, 3 deletions
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__)