Skip to content

Commit 52a522c

Browse files
avisconticarlescufi
authored andcommitted
sensor/stmemsc: Align stmemsc i/f to v2.01
Align stmemsc HAL i/f to v2.01 Signed-off-by: Armando Visconti <armando.visconti@st.com>
1 parent 575de9d commit 52a522c

File tree

33 files changed

+21556
-317
lines changed

33 files changed

+21556
-317
lines changed

sensor/stmemsc/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ set(stmems_pids
1111
ais328dq
1212
ais3624dq
1313
asm330lhh
14+
asm330lhhx
1415
h3lis100dl
1516
h3lis331dl
1617
hts221
@@ -22,13 +23,15 @@ set(stmems_pids
2223
iis328dq
2324
iis3dhhc
2425
iis3dwb
26+
ilps22qs
2527
ism303dac
2628
ism330dhcx
2729
ism330dlc
2830
l20g20is
2931
l3gd20h
3032
lis25ba
3133
lis2de12
34+
lis2dh
3235
lis2dh12
3336
lis2ds12
3437
lis2dtw12
@@ -42,11 +45,13 @@ set(stmems_pids
4245
lis3dsh
4346
lis3mdl
4447
lps22ch
48+
lps22df
4549
lps22hb
4650
lps22hh
4751
lps25hb
4852
lps27hhtw
4953
lps27hhw
54+
lps28dfw
5055
lps33hw
5156
lps33k
5257
lps33w

sensor/stmemsc/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Origin:
66
https://www.st.com/en/embedded-software/c-driver-mems.html
77

88
Status:
9-
version v2.00
9+
version v2.01
1010

1111
Purpose:
1212
ST Microelectronics standard C platform-independent drivers for MEMS
@@ -46,7 +46,7 @@ URL:
4646
https://www.st.com/en/embedded-software/c-driver-mems.html
4747

4848
commit:
49-
version v2.00
49+
version v2.01
5050

5151
Maintained-by:
5252
ST Microelectronics

sensor/stmemsc/asm330lhh_STdC/driver/asm330lhh_reg.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ int32_t asm330lhh_xl_data_rate_get(stmdev_ctx_t *ctx,
303303
*val = ASM330LHH_XL_ODR_208Hz;
304304
break;
305305

306-
case ASM330LHH_XL_ODR_417Hz:
307-
*val = ASM330LHH_XL_ODR_417Hz;
306+
case ASM330LHH_XL_ODR_416Hz:
307+
*val = ASM330LHH_XL_ODR_416Hz;
308308
break;
309309

310310
case ASM330LHH_XL_ODR_833Hz:
@@ -323,10 +323,6 @@ int32_t asm330lhh_xl_data_rate_get(stmdev_ctx_t *ctx,
323323
*val = ASM330LHH_XL_ODR_6667Hz;
324324
break;
325325

326-
case ASM330LHH_XL_ODR_6Hz5:
327-
*val = ASM330LHH_XL_ODR_6Hz5;
328-
break;
329-
330326
default:
331327
*val = ASM330LHH_XL_ODR_OFF;
332328
break;
@@ -477,8 +473,8 @@ int32_t asm330lhh_gy_data_rate_get(stmdev_ctx_t *ctx,
477473
*val = ASM330LHH_GY_ODR_208Hz;
478474
break;
479475

480-
case ASM330LHH_GY_ODR_417Hz:
481-
*val = ASM330LHH_GY_ODR_417Hz;
476+
case ASM330LHH_GY_ODR_416Hz:
477+
*val = ASM330LHH_GY_ODR_416Hz;
482478
break;
483479

484480
case ASM330LHH_GY_ODR_833Hz:

sensor/stmemsc/asm330lhh_STdC/driver/asm330lhh_reg.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -940,12 +940,11 @@ typedef enum
940940
ASM330LHH_XL_ODR_52Hz = 3,
941941
ASM330LHH_XL_ODR_104Hz = 4,
942942
ASM330LHH_XL_ODR_208Hz = 5,
943-
ASM330LHH_XL_ODR_417Hz = 6,
943+
ASM330LHH_XL_ODR_416Hz = 6,
944944
ASM330LHH_XL_ODR_833Hz = 7,
945945
ASM330LHH_XL_ODR_1667Hz = 8,
946946
ASM330LHH_XL_ODR_3333Hz = 9,
947947
ASM330LHH_XL_ODR_6667Hz = 10,
948-
ASM330LHH_XL_ODR_6Hz5 = 11, /* (low power only) */
949948
} asm330lhh_odr_xl_t;
950949
int32_t asm330lhh_xl_data_rate_set(stmdev_ctx_t *ctx,
951950
asm330lhh_odr_xl_t val);
@@ -974,7 +973,7 @@ typedef enum
974973
ASM330LHH_GY_ODR_52Hz = 3,
975974
ASM330LHH_GY_ODR_104Hz = 4,
976975
ASM330LHH_GY_ODR_208Hz = 5,
977-
ASM330LHH_GY_ODR_417Hz = 6,
976+
ASM330LHH_GY_ODR_416Hz = 6,
978977
ASM330LHH_GY_ODR_833Hz = 7,
979978
ASM330LHH_GY_ODR_1667Hz = 8,
980979
ASM330LHH_GY_ODR_3333Hz = 9,

0 commit comments

Comments
 (0)