modules/hal_st: Align sensor drivers to stmemsc HAL i/f v1.02

Align all sensor drivers that are using stmemsc (STdC) HAL i/f
to new APIs of stmemsc v1.02.

Requires https://github.com/zephyrproject-rtos/hal_st/pull/3

Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
Armando Visconti 2019-09-25 10:51:12 +02:00 committed by Maureen Helm
commit dc9e297e09
29 changed files with 129 additions and 60 deletions

View file

@ -19,6 +19,11 @@
#include <sys/util.h>
#include "iis3dhhc_reg.h"
union axis3bit16_t {
s16_t i16bit[3];
u8_t u8bit[6];
};
struct iis3dhhc_config {
char *master_dev_name;
int (*bus_init)(struct device *dev);
@ -39,10 +44,10 @@ struct iis3dhhc_data {
struct device *bus;
s16_t acc[3];
iis3dhhc_ctx_t *ctx;
stmdev_ctx_t *ctx;
#ifdef DT_ST_IIS3DHHC_BUS_SPI
iis3dhhc_ctx_t ctx_spi;
stmdev_ctx_t ctx_spi;
#endif
#ifdef CONFIG_IIS3DHHC_TRIGGER