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

@ -17,6 +17,11 @@
#include <drivers/sensor.h>
#include "lis2dw12_reg.h"
union axis3bit16_t {
s16_t i16bit[3];
u8_t u8bit[6];
};
#if defined(CONFIG_LIS2DW12_ODR_1_6)
#define LIS2DW12_DEFAULT_ODR LIS2DW12_XL_ODR_1Hz6_LP_ONLY
#elif defined(CONFIG_LIS2DW12_ODR_12_5)
@ -109,7 +114,7 @@ struct lis2dw12_data {
/* save sensitivity */
u16_t gain;
lis2dw12_ctx_t *ctx;
stmdev_ctx_t *ctx;
#ifdef CONFIG_LIS2DW12_TRIGGER
struct device *gpio;
u8_t gpio_pin;