aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-09-27 21:28:26 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-09-27 21:28:26 +0000
commitc614b182268517ea826629838a4f59a05b8eb6e3 (patch)
tree618b79b2dabe232a66444818f6ce7c8949061d11 /testhal/STM32/STM32F4xx/I2C-LPS25H/main.c
parentb80b4fdd87e886d1bd5ff6278c8aa00872e96bc5 (diff)
downloadChibiOS-c614b182268517ea826629838a4f59a05b8eb6e3.tar.gz
ChibiOS-c614b182268517ea826629838a4f59a05b8eb6e3.tar.bz2
ChibiOS-c614b182268517ea826629838a4f59a05b8eb6e3.zip
Improved LPS25H driver and related demo: added multiple register read/write.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9810 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F4xx/I2C-LPS25H/main.c')
-rw-r--r--testhal/STM32/STM32F4xx/I2C-LPS25H/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c b/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c
index c31fef938..b708fe6d2 100644
--- a/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c
+++ b/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c
@@ -42,8 +42,8 @@ static const I2CConfig i2ccfg = {
static const LPS25HConfig lps25hcfg = {
&I2CD1,
&i2ccfg,
- 0, /* Use default sensitivity.*/
- 0, /* Use default bias.*/
+ NULL, /* Use default sensitivity.*/
+ NULL, /* Use default bias.*/
LPS25H_SAD_VCC, /* SA0 connected to VCC */
LPS25H_ODR_7HZ, /* Output data rate 7 Hz.*/
#if LPS25H_USE_ADVANCED || defined(__DOXYGEN__)