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:
parent
ac9fe11f2f
commit
dc9e297e09
29 changed files with 129 additions and 60 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue