From e0fcf2b6c7e1c722368934effec0e175bc7925d0 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Sat, 10 Mar 2018 13:23:44 +0000 Subject: Restored masks in HTS221 driver Minor adjustment in HTS221 demo git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11684 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/ex/ST/hts221.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'os') 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. */ /*===========================================================================*/ -- cgit v1.2.3