Update EX/BMP085 example according to the BMP085 driver modification.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10831 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Theodore Ateba 2017-10-15 21:37:33 +00:00
parent aada1a7ea6
commit 97442e7faa
1 changed files with 9 additions and 21 deletions

View File

@ -31,9 +31,6 @@
/* Variables and Driver configuration for the demo. */
/*==========================================================================*/
/* Use to write to the serial driver */
//static BaseSequentialStream *chp = (BaseSequentialStream*) &SD2;
/* BMP085 Driver: This object represent an BMP085 instance. */
static BMP085Driver BMP085D1;
@ -54,30 +51,21 @@ static const I2CConfig i2cConfig = {
FAST_DUTY_CYCLE_2, /* I2C interface duty cycle mode. */
};
/**
* @brief BMP085 Barometer configuration structure.
*/
static const BMP085BaroConfig bmp085BaroConfig = {
BMP085_BARO_CT_LOW, /* Pressure conversion time. */
BMP085_BARO_MODE_LOW, /* BMP085 Mode. */
BMP085_BARO_OSS_0 /* Oversempling setting. */
};
/**
* @brief BMP085 Thermometeer configuration structure.
*/
static const BMP085ThermoConfig bmp085ThermoConfig = {
BMP085_THERMO_CT_LOW /* Temperature conversion time */
};
/**
* @brief BMP085 configuration structure.
*/
static const BMP085Config bmp085Config = {
&I2CD1, /* I2C Driver pointer. */
&i2cConfig, /* I2C Driver configuration. */
&bmp085BaroConfig, /* BMP085 Baromether configuration. */
&bmp085ThermoConfig /* BMP085 Thermometer 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 */
#endif
};
/*==========================================================================*/