aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/ex/ST/hts221.c7
-rw-r--r--testex/STM32/STM32F4xx/I2C-HTS221/main.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/os/ex/ST/hts221.c b/os/ex/ST/hts221.c
index a0367da23..d61fbf7ac 100644
--- a/os/ex/ST/hts221.c
+++ b/os/ex/ST/hts221.c
@@ -34,6 +34,13 @@
/* Driver local definitions. */
/*===========================================================================*/
+#define HTS221_SEL(mask, offset) (int16_t)(mask << offset)
+
+#define HTS221_FLAG_HYGRO_BIAS 0x01
+#define HTS221_FLAG_HYGRO_SENS 0x02
+#define HTS221_FLAG_THERMO_BIAS 0x04
+#define HTS221_FLAG_THERMO_SENS 0x08
+
/*===========================================================================*/
/* Driver exported variables. */
/*===========================================================================*/
diff --git a/testex/STM32/STM32F4xx/I2C-HTS221/main.c b/testex/STM32/STM32F4xx/I2C-HTS221/main.c
index dc1cb5cd8..a67ab4931 100644
--- a/testex/STM32/STM32F4xx/I2C-HTS221/main.c
+++ b/testex/STM32/STM32F4xx/I2C-HTS221/main.c
@@ -108,7 +108,7 @@ int main(void) {
/* Activates the HTS221 driver.*/
hts221Start(&HTS221D1, &hts221cfg);
- /* Normal main() thread activity, printing MEMS data on the SD1. */
+ /* Normal main() thread activity, printing MEMS data on the SD2. */
while (true) {
hts221HygrometerReadRaw(&HTS221D1, &hygroraw);
chprintf(chp, "HTS221D1 Hygrometer raw data...\r\n");