aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F3xx
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-09-28 23:18:59 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-09-28 23:18:59 +0000
commitcae987f6b386b63dc0563190fa0e0466b9f47016 (patch)
treee262e4d30929859829501204b94a1503ced4871d /testhal/STM32/STM32F3xx
parent3369e1e04c7cb451e6c206ed6b8ab1abda649c24 (diff)
downloadChibiOS-cae987f6b386b63dc0563190fa0e0466b9f47016.tar.gz
ChibiOS-cae987f6b386b63dc0563190fa0e0466b9f47016.tar.bz2
ChibiOS-cae987f6b386b63dc0563190fa0e0466b9f47016.zip
Improved L3GD20 driver and related demo: improved sensitivity and bias handling.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9819 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F3xx')
-rw-r--r--testhal/STM32/STM32F3xx/SPI-L3GD20/Makefile2
-rw-r--r--testhal/STM32/STM32F3xx/SPI-L3GD20/main.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/testhal/STM32/STM32F3xx/SPI-L3GD20/Makefile b/testhal/STM32/STM32F3xx/SPI-L3GD20/Makefile
index 3679b008a..ba5a5012e 100644
--- a/testhal/STM32/STM32F3xx/SPI-L3GD20/Makefile
+++ b/testhal/STM32/STM32F3xx/SPI-L3GD20/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 \
- -DL3GD20_USE_ADVANCED=0
+ -DL3GD20_USE_ADVANCED=0 -DL3GD20_SHARED_SPI=0
# Define ASM defines here
UADEFS =
diff --git a/testhal/STM32/STM32F3xx/SPI-L3GD20/main.c b/testhal/STM32/STM32F3xx/SPI-L3GD20/main.c
index fb21b0af8..2df0437b1 100644
--- a/testhal/STM32/STM32F3xx/SPI-L3GD20/main.c
+++ b/testhal/STM32/STM32F3xx/SPI-L3GD20/main.c
@@ -48,8 +48,8 @@ static const SPIConfig spicfg = {
static L3GD20Config 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.*/
L3GD20_FS_250DPS, /* Full scale value.*/
L3GD20_ODR_760HZ, /* Output data rate.*/
#if L3GD20_USE_ADVANCED || defined(__DOXYGEN__)