boards: st: sensortile_box_pro: remove hts221 sensor
Remove HTS221 sensor support from sensortile_box_pro as it has been ruled out from final version. In fact, HTS221 is in the process of being terminated and is not recommended for new design. The candidate replacement is SHT40 from Sensirion, which is available also as a DIL24 adapter, which can be plugged on sensortile_box_pro board. See SENSEVAL-SHT4XV1: https://www.st.com/en/partner-products-and-services/senseval-sht4xv1.html Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
parent
07c0c59655
commit
cdce68e4c8
5 changed files with 0 additions and 38 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -228,13 +228,6 @@ stm32_lp_tick_source: &lptim1 {
|
|||
status = "okay";
|
||||
clock-frequency = <I2C_BITRATE_FAST>;
|
||||
|
||||
hts221@5f {
|
||||
compatible = "st,hts221";
|
||||
reg = <0x5f>;
|
||||
drdy-gpios = <&gpioe 11 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
lps22df@5d {
|
||||
compatible = "st,lps22df";
|
||||
reg = <0x5d>;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue