aboutsummaryrefslogtreecommitdiffstats
path: root/os/ex/ST/hts221.c
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-02-05 10:31:28 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-02-05 10:31:28 +0000
commit4ddc3c188bbd834f05bd8d635e6e26fb3ecc6ae2 (patch)
treee1cb04c3d49125839f0e33cb09ead6e3739e2f49 /os/ex/ST/hts221.c
parent414f8db1c1f291a891a6423164d1b8fe9180f56a (diff)
downloadChibiOS-4ddc3c188bbd834f05bd8d635e6e26fb3ecc6ae2.tar.gz
ChibiOS-4ddc3c188bbd834f05bd8d635e6e26fb3ecc6ae2.tar.bz2
ChibiOS-4ddc3c188bbd834f05bd8d635e6e26fb3ecc6ae2.zip
Updated HTS221 driver to v 1.0.1 (Fixing Bug #915).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11441 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ex/ST/hts221.c')
-rw-r--r--os/ex/ST/hts221.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/os/ex/ST/hts221.c b/os/ex/ST/hts221.c
index 461541824..570726248 100644
--- a/os/ex/ST/hts221.c
+++ b/os/ex/ST/hts221.c
@@ -409,17 +409,17 @@ static msg_t thermo_reset_sensitivity(void *ip) {
return MSG_OK;
}
-static const struct BaseSensorVMT vmt_basesensor = {
+static const struct BaseSensorVMT vmt_sensor = {
sens_get_axes_number, sens_read_raw, sens_read_cooked
};
-static const struct BaseHygrometerVMT vmt_basehygrometer = {
+static const struct HTS221HygrometerVMT vmt_hygrometer = {
hygro_get_axes_number, hygro_read_raw, hygro_read_cooked,
hygro_set_bias, hygro_reset_bias,
hygro_set_sensitivity, hygro_reset_sensitivity
};
-static const struct BaseThermometerVMT vmt_basethermometer = {
+static const struct HTS221ThermometerVMT vmt_thermometer = {
thermo_get_axes_number, thermo_read_raw, thermo_read_cooked,
thermo_set_bias, thermo_reset_bias,
thermo_set_sensitivity, thermo_reset_sensitivity
@@ -438,9 +438,9 @@ static const struct BaseThermometerVMT vmt_basethermometer = {
*/
void hts221ObjectInit(HTS221Driver *devp) {
- devp->vmt_basesensor = &vmt_basesensor;
- devp->vmt_basehygrometer = &vmt_basehygrometer;
- devp->vmt_basethermometer = &vmt_basethermometer;
+ devp->vmt_sensor = &vmt_sensor;
+ devp->vmt_hygrometer = &vmt_hygrometer;
+ devp->vmt_thermometer = &vmt_thermometer;
devp->config = NULL;
devp->state = HTS221_STOP;
devp->bias[0] = 0.0;