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
|
@ -178,7 +178,7 @@ static int lis2dw12_sample_fetch(struct device *dev, enum sensor_channel chan)
|
|||
struct lis2dw12_data *lis2dw12 = dev->driver_data;
|
||||
const struct lis2dw12_device_config *cfg = dev->config->config_info;
|
||||
u8_t shift;
|
||||
axis3bit16_t buf;
|
||||
union axis3bit16_t buf;
|
||||
|
||||
/* fetch raw data sample */
|
||||
if (lis2dw12_acceleration_raw_get(lis2dw12->ctx, buf.u8bit) < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue