File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
samples/shields/x_nucleo_iks4a1/standard Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ CONFIG_LIS2MDL_TRIGGER_OWN_THREAD=y
7
7
CONFIG_LPS2XDF_TRIGGER_OWN_THREAD=y
8
8
CONFIG_LSM6DSO16IS_TRIGGER_NONE=y
9
9
CONFIG_LSM6DSO16IS_ENABLE_TEMP=y
10
+ CONFIG_LSM6DSO16IS_ISPU_ENABLE=y
10
11
CONFIG_LSM6DSV16X_TRIGGER_OWN_THREAD=y
11
12
CONFIG_LSM6DSV16X_ENABLE_TEMP=y
12
13
CONFIG_LIS2DUX12_TRIGGER_OWN_THREAD=y
Original file line number Diff line number Diff line change @@ -88,10 +88,19 @@ static void lis2mdl_config(const struct device *lis2mdl)
88
88
#endif
89
89
}
90
90
91
+ #include "norm.h"
92
+
91
93
static void lsm6dso16is_config (const struct device * lsm6dso16is )
92
94
{
93
95
struct sensor_value odr_attr , fs_attr , mode_attr ;
94
96
97
+ /* upload norm ISPU example */
98
+ if (sensor_upload_fw (lsm6dso16is , ispu_conf_conf_0 ,
99
+ (sizeof (ispu_conf_conf_0 ) / sizeof (struct mems_conf_op ))) < 0 ) {
100
+ printk ("Cannot upload ISPU\n" );
101
+ return ;
102
+ }
103
+
95
104
mode_attr .val1 = 0 ; /* HP */
96
105
97
106
if (sensor_attr_set (lsm6dso16is , SENSOR_CHAN_ACCEL_XYZ ,
You can’t perform that action at this time.
0 commit comments