aboutsummaryrefslogtreecommitdiffstats
path: root/testex/STM32/STM32F4xx/I2C-HTS221
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-01-14 11:19:39 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-01-14 11:19:39 +0000
commitb28c62685d857b55dd8bc7e759a9f93ab0a51632 (patch)
treecc3285cdd4c1b4ec07340784f0c9087efa5c9a02 /testex/STM32/STM32F4xx/I2C-HTS221
parentf6b807fd5a089607a1e21dbcad3c060363650fa1 (diff)
downloadChibiOS-b28c62685d857b55dd8bc7e759a9f93ab0a51632.tar.gz
ChibiOS-b28c62685d857b55dd8bc7e759a9f93ab0a51632.tar.bz2
ChibiOS-b28c62685d857b55dd8bc7e759a9f93ab0a51632.zip
Updated EX demos to be compliant with latest ChibiOS/HAL edit
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11273 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testex/STM32/STM32F4xx/I2C-HTS221')
-rw-r--r--testex/STM32/STM32F4xx/I2C-HTS221/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/testex/STM32/STM32F4xx/I2C-HTS221/main.c b/testex/STM32/STM32F4xx/I2C-HTS221/main.c
index 08b82fdd7..f7d2d5925 100644
--- a/testex/STM32/STM32F4xx/I2C-HTS221/main.c
+++ b/testex/STM32/STM32F4xx/I2C-HTS221/main.c
@@ -30,9 +30,9 @@
/* HTS221 Driver: This object represent an HTS221 instance */
static HTS221Driver HTS221D1;
-static int32_t rawdata[HTS221_HYGRO_NUMBER_OF_AXES +
+static int32_t rawdata[HTS221_HYGRO_NUMBER_OF_AXES +
HTS221_THERMO_NUMBER_OF_AXES];
-static float cookeddata[HTS221_HYGRO_NUMBER_OF_AXES +
+static float cookeddata[HTS221_HYGRO_NUMBER_OF_AXES +
HTS221_THERMO_NUMBER_OF_AXES];
static const I2CConfig i2ccfg = {
@@ -44,9 +44,9 @@ static const I2CConfig i2ccfg = {
static const HTS221Config hts221cfg = {
&I2CD1,
&i2ccfg,
- NULL, /* Use default sensitivity.*/
- NULL, /* Use default bias.*/
- HTS221_ODR_7HZ, /* Output data rate 7 Hz.*/
+ NULL,
+ NULL,
+ HTS221_ODR_7HZ,
#if HTS221_USE_ADVANCED || defined(__DOXYGEN__)
HTS221_BDU_CONTINUOUS,
HTS221_AVGH_256,