Updated HTS221 demos in testex demos to be close to the pattern used in testhal demos.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15438 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
7a1228781e
commit
9f7c12e7fd
|
@ -40,17 +40,17 @@ static const I2CConfig i2ccfg = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static const HTS221Config hts221cfg = {
|
static const HTS221Config hts221cfg = {
|
||||||
&I2CD1,
|
.i2cp = &I2CD1,
|
||||||
&i2ccfg,
|
.i2ccfg = &i2ccfg,
|
||||||
NULL,
|
.hygrosensitivity = NULL,
|
||||||
NULL,
|
.hygrobias = NULL,
|
||||||
NULL,
|
.thermosensitivity = NULL,
|
||||||
NULL,
|
.thermobias = NULL,
|
||||||
HTS221_ODR_7HZ,
|
.outputdatarate = HTS221_ODR_7HZ
|
||||||
#if HTS221_USE_ADVANCED || defined(__DOXYGEN__)
|
#if HTS221_USE_ADVANCED || defined(__DOXYGEN__)
|
||||||
HTS221_BDU_CONTINUOUS,
|
.blockdataupdate = HTS221_BDU_CONTINUOUS,
|
||||||
HTS221_AVGH_256,
|
.hygroresolution = HTS221_AVGH_256,
|
||||||
HTS221_AVGT_256
|
.thermoresolution = HTS221_AVGT_256
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -48,13 +48,13 @@ static BaseSequentialStream* chp = (BaseSequentialStream*)&SD2;
|
||||||
static HTS221Driver HTS221D1;
|
static HTS221Driver HTS221D1;
|
||||||
|
|
||||||
static const HTS221Config hts221cfg = {
|
static const HTS221Config hts221cfg = {
|
||||||
&I2CD1,
|
.i2cp = &I2CD1,
|
||||||
&i2ccfg,
|
.i2ccfg = &i2ccfg,
|
||||||
NULL,
|
.hygrosensitivity = NULL,
|
||||||
NULL,
|
.hygrobias = NULL,
|
||||||
NULL,
|
.thermosensitivity = NULL,
|
||||||
NULL,
|
.thermobias = NULL,
|
||||||
HTS221_ODR_7HZ
|
.outputdatarate = HTS221_ODR_7HZ
|
||||||
};
|
};
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
Loading…
Reference in New Issue