diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2018-01-14 11:19:39 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2018-01-14 11:19:39 +0000 |
commit | b28c62685d857b55dd8bc7e759a9f93ab0a51632 (patch) | |
tree | cc3285cdd4c1b4ec07340784f0c9087efa5c9a02 /testex/STM32/STM32F4xx/I2C-BMP085/main.c | |
parent | f6b807fd5a089607a1e21dbcad3c060363650fa1 (diff) | |
download | ChibiOS-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-BMP085/main.c')
-rw-r--r-- | testex/STM32/STM32F4xx/I2C-BMP085/main.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/testex/STM32/STM32F4xx/I2C-BMP085/main.c b/testex/STM32/STM32F4xx/I2C-BMP085/main.c index 5f2b657dc..1b1e0533f 100644 --- a/testex/STM32/STM32F4xx/I2C-BMP085/main.c +++ b/testex/STM32/STM32F4xx/I2C-BMP085/main.c @@ -46,25 +46,25 @@ static float cookeddata[BMP085_BARO_NUMBER_OF_AXES + * @brief I2C configuration structure.
*/
static const I2CConfig i2cConfig = {
- OPMODE_I2C, /* I2C inetrface peration mode. */
- 400000, /* I2C interface clock speed. */
- FAST_DUTY_CYCLE_2, /* I2C interface duty cycle mode. */
+ OPMODE_I2C,
+ 400000,
+ FAST_DUTY_CYCLE_2,
};
/**
* @brief BMP085 configuration structure.
*/
static const BMP085Config bmp085Config = {
- &I2CD1, /* I2C Driver pointer. */
- &i2cConfig, /* I2C Driver configuration. */
- NULL, /* Sensibility. */
- NULL, /* bias. */
- NULL, /* Output data rate. */
-#if BMP085_USE_ADVANCED || defined(__DOXYGEN__)
- BMP085_BARO_CT_LOW, /* Pressure conversion time. */
- BMP085_BARO_MODE_LOW, /* BMP085 Mode. */
- BMP085_BARO_OSS_0, /* Oversempling setting. */
- BMP085_THERMO_CT_LOW, /* Temperature conversion time */
+ &I2CD1,
+ &i2cConfig,
+ NULL,
+ NULL,
+ NULL,
+#if BMP085_USE_ADVANCED
+ BMP085_BARO_CT_LOW,
+ BMP085_BARO_MODE_LOW,
+ BMP085_BARO_OSS_0,
+ BMP085_THERMO_CT_LOW,
#endif
};
|