diff --git a/boards/st/sensortile_box_pro/doc/index.rst b/boards/st/sensortile_box_pro/doc/index.rst index 0d824aa9543e1..50540f91f7734 100644 --- a/boards/st/sensortile_box_pro/doc/index.rst +++ b/boards/st/sensortile_box_pro/doc/index.rst @@ -163,8 +163,6 @@ Motion and environmental sensors (`lps22df datasheet`_) - **LIS2DU12** 3-axis accelerometer (`lis2du12 datasheet`_) - - **HTS221** Humidity sensor - (`hts221 datasheet`_) - **STTS22H** Digital temperature sensor (`stts22hh datasheet`_) - **MP23db01HP** Microphone / audio sensor @@ -353,9 +351,6 @@ References .. _lis2du12 datasheet: https://www.st.com/en/mems-and-sensors/lis2du12.html -.. _hts221 datasheet: - https://www.st.com/en/mems-and-sensors/hts221.html - .. _stts22hh datasheet: https://www.st.com/en/mems-and-sensors/stts22h.html diff --git a/boards/st/sensortile_box_pro/sensortile_box_pro.dts b/boards/st/sensortile_box_pro/sensortile_box_pro.dts index 1d942fe83aeef..7014fd86a7e53 100644 --- a/boards/st/sensortile_box_pro/sensortile_box_pro.dts +++ b/boards/st/sensortile_box_pro/sensortile_box_pro.dts @@ -228,13 +228,6 @@ stm32_lp_tick_source: &lptim1 { status = "okay"; clock-frequency = ; - hts221@5f { - compatible = "st,hts221"; - reg = <0x5f>; - drdy-gpios = <&gpioe 11 GPIO_ACTIVE_HIGH>; - status = "okay"; - }; - lps22df@5d { compatible = "st,lps22df"; reg = <0x5d>; diff --git a/samples/boards/sensortile_box_pro/sensors-on-board/README.rst b/samples/boards/sensortile_box_pro/sensors-on-board/README.rst index ce0034e2d86d2..556f209923b12 100644 --- a/samples/boards/sensortile_box_pro/sensors-on-board/README.rst +++ b/samples/boards/sensortile_box_pro/sensors-on-board/README.rst @@ -12,7 +12,6 @@ This sample enables all sensors of SensorTile.box Pro board, and then periodically reads and displays data on the console from the following sensors: -- HTS221: ambient temperature and relative humidity - LPS22DF: ambient temperature and atmospheric pressure - LSM6DSV16X: 6-Axis acceleration and angular velocity - LIS2DU12: 3-Axis acceleration @@ -62,8 +61,6 @@ The sample code outputs sensors data on the SensorTile.box Pro console. SensorTile.box Pro dashboard - HTS221: Temperature: 26.4 C - HTS221: Relative Humidity: 60.5% LPS22DF: Temperature: 28.4 C LPS22DF: Pressure:99.694 kpa LSM6DSV16X: Accel (m.s-2): x: -0.158, y: 0.158, z: 9.811 diff --git a/samples/boards/sensortile_box_pro/sensors-on-board/prj.conf b/samples/boards/sensortile_box_pro/sensors-on-board/prj.conf index 97e6a2d17f220..41a681705d48e 100644 --- a/samples/boards/sensortile_box_pro/sensors-on-board/prj.conf +++ b/samples/boards/sensortile_box_pro/sensors-on-board/prj.conf @@ -7,7 +7,6 @@ CONFIG_GPIO=y # config sensors CONFIG_SENSOR=y CONFIG_SENSOR_LOG_LEVEL_DBG=y -CONFIG_HTS221_TRIGGER_NONE=y CONFIG_LPS2XDF_TRIGGER_OWN_THREAD=y CONFIG_LSM6DSV16X_TRIGGER_OWN_THREAD=y CONFIG_LIS2MDL_TRIGGER_OWN_THREAD=y diff --git a/samples/boards/sensortile_box_pro/sensors-on-board/src/main.c b/samples/boards/sensortile_box_pro/sensors-on-board/src/main.c index 6ba2e3e226bb1..42141697aeea0 100644 --- a/samples/boards/sensortile_box_pro/sensors-on-board/src/main.c +++ b/samples/boards/sensortile_box_pro/sensors-on-board/src/main.c @@ -299,17 +299,12 @@ int main(void) printk("SensorTile.box Pro sensor test\n"); - const struct device *const hts221 = DEVICE_DT_GET_ONE(st_hts221); const struct device *const lps22df = DEVICE_DT_GET_ONE(st_lps22df); const struct device *const lsm6dsv16x = DEVICE_DT_GET_ONE(st_lsm6dsv16x); const struct device *const lis2mdl = DEVICE_DT_GET_ONE(st_lis2mdl); const struct device *const lis2du12 = DEVICE_DT_GET_ONE(st_lis2du12); const struct device *const stts22h = DEVICE_DT_GET_ONE(st_stts22h); - if (!device_is_ready(hts221)) { - printk("%s: device not ready.\n", hts221->name); - return 0; - } if (!device_is_ready(lps22df)) { printk("%s: device not ready.\n", lps22df->name); return 0; @@ -338,7 +333,6 @@ int main(void) lsm6dsv16x_config(lsm6dsv16x); while (1) { - struct sensor_value hts221_hum, hts221_temp; struct sensor_value lps22df_press, lps22df_temp; struct sensor_value lsm6dsv16x_accel[3], lsm6dsv16x_gyro[3]; struct sensor_value lis2mdl_magn[3]; @@ -346,12 +340,6 @@ int main(void) struct sensor_value lis2du12_accel[3]; struct sensor_value stts22h_temp; - /* handle HTS221 sensor */ - if (sensor_sample_fetch(hts221) < 0) { - printf("HTS221 Sensor sample update error\n"); - return 0; - } - #ifndef CONFIG_LSM6DSV16X_TRIGGER if (sensor_sample_fetch(lsm6dsv16x) < 0) { printf("LSM6DSV16X Sensor sample update error\n"); @@ -387,8 +375,6 @@ int main(void) } #endif - sensor_channel_get(hts221, SENSOR_CHAN_HUMIDITY, &hts221_hum); - sensor_channel_get(hts221, SENSOR_CHAN_AMBIENT_TEMP, &hts221_temp); sensor_channel_get(lps22df, SENSOR_CHAN_AMBIENT_TEMP, &lps22df_temp); sensor_channel_get(lps22df, SENSOR_CHAN_PRESS, &lps22df_press); sensor_channel_get(lsm6dsv16x, SENSOR_CHAN_ACCEL_XYZ, lsm6dsv16x_accel); @@ -405,14 +391,6 @@ int main(void) printf("SensorTile.box dashboard\n\n"); - /* HTS221 temperature */ - printf("HTS221: Temperature: %.1f C\n", - sensor_value_to_double(&hts221_temp)); - - /* HTS221 humidity */ - printf("HTS221: Relative Humidity: %.1f%%\n", - sensor_value_to_double(&hts221_hum)); - /* temperature */ printf("LPS22DF: Temperature: %.1f C\n", sensor_value_to_double(&lps22df_temp));