aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/SPI-LIS302DL
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-LIS302DL
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-LIS302DL')
-rw-r--r--testhal/STM32/STM32F4xx/SPI-LIS302DL/Makefile2
-rw-r--r--testhal/STM32/STM32F4xx/SPI-LIS302DL/main.c4
2 files changed, 3 insertions, 3 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__)