From cae987f6b386b63dc0563190fa0e0466b9f47016 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Wed, 28 Sep 2016 23:18:59 +0000 Subject: 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 --- testhal/STM32/STM32F4xx/SPI-L3GD20/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testhal/STM32/STM32F4xx/SPI-L3GD20/main.c') diff --git a/testhal/STM32/STM32F4xx/SPI-L3GD20/main.c b/testhal/STM32/STM32F4xx/SPI-L3GD20/main.c index ae30c6c98..2019b99a3 100644 --- a/testhal/STM32/STM32F4xx/SPI-L3GD20/main.c +++ b/testhal/STM32/STM32F4xx/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__) -- cgit v1.2.3