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:
parent
aada1a7ea6
commit
97442e7faa
|
@ -31,9 +31,6 @@
|
||||||
/* Variables and Driver configuration for the demo. */
|
/* 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. */
|
/* BMP085 Driver: This object represent an BMP085 instance. */
|
||||||
static BMP085Driver BMP085D1;
|
static BMP085Driver BMP085D1;
|
||||||
|
|
||||||
|
@ -54,30 +51,21 @@ static const I2CConfig i2cConfig = {
|
||||||
FAST_DUTY_CYCLE_2, /* I2C interface duty cycle mode. */
|
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.
|
* @brief BMP085 configuration structure.
|
||||||
*/
|
*/
|
||||||
static const BMP085Config bmp085Config = {
|
static const BMP085Config bmp085Config = {
|
||||||
&I2CD1, /* I2C Driver pointer. */
|
&I2CD1, /* I2C Driver pointer. */
|
||||||
&i2cConfig, /* I2C Driver configuration. */
|
&i2cConfig, /* I2C Driver configuration. */
|
||||||
&bmp085BaroConfig, /* BMP085 Baromether configuration. */
|
NULL, /* Sensibility. */
|
||||||
&bmp085ThermoConfig /* BMP085 Thermometer configuration. */
|
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
|
||||||
};
|
};
|
||||||
|
|
||||||
/*==========================================================================*/
|
/*==========================================================================*/
|
||||||
|
|
Loading…
Reference in New Issue