| # SPDX-License-Identifier: Apache-2.0 |
| |
| add_subdirectory_ifdef(CONFIG_ADT7420 adt7420) |
| add_subdirectory_ifdef(CONFIG_ADXL345 adxl345) |
| add_subdirectory_ifdef(CONFIG_ADXL362 adxl362) |
| add_subdirectory_ifdef(CONFIG_ADXL372 adxl372) |
| add_subdirectory_ifdef(CONFIG_AK8975 ak8975) |
| add_subdirectory_ifdef(CONFIG_AMG88XX amg88xx) |
| add_subdirectory_ifdef(CONFIG_AMS_IAQ_CORE ams_iAQcore) |
| add_subdirectory_ifdef(CONFIG_APDS9960 apds9960) |
| add_subdirectory_ifdef(CONFIG_BMA280 bma280) |
| add_subdirectory_ifdef(CONFIG_BMC150_MAGN bmc150_magn) |
| add_subdirectory_ifdef(CONFIG_BME280 bme280) |
| add_subdirectory_ifdef(CONFIG_BME680 bme680) |
| add_subdirectory_ifdef(CONFIG_BMG160 bmg160) |
| add_subdirectory_ifdef(CONFIG_BMI160 bmi160) |
| add_subdirectory_ifdef(CONFIG_BMI270 bmi270) |
| add_subdirectory_ifdef(CONFIG_BMM150 bmm150) |
| add_subdirectory_ifdef(CONFIG_BMP388 bmp388) |
| add_subdirectory_ifdef(CONFIG_BQ274XX bq274xx) |
| add_subdirectory_ifdef(CONFIG_CCS811 ccs811) |
| add_subdirectory_ifdef(CONFIG_DHT dht) |
| add_subdirectory_ifdef(CONFIG_DPS310 dps310) |
| add_subdirectory_ifdef(CONFIG_DS18B20 ds18b20) |
| add_subdirectory_ifdef(CONFIG_ENS210 ens210) |
| add_subdirectory_ifdef(CONFIG_FDC2X1X fdc2x1x) |
| add_subdirectory_ifdef(CONFIG_FXAS21002 fxas21002) |
| add_subdirectory_ifdef(CONFIG_FXOS8700 fxos8700) |
| add_subdirectory_ifdef(CONFIG_GROVE_SENSORS grove) |
| add_subdirectory_ifdef(CONFIG_TI_HDC ti_hdc) |
| add_subdirectory_ifdef(CONFIG_TI_HDC20XX ti_hdc20xx) |
| add_subdirectory_ifdef(CONFIG_HMC5883L hmc5883l) |
| add_subdirectory_ifdef(CONFIG_HP206C hp206c) |
| add_subdirectory_ifdef(CONFIG_HTS221 hts221) |
| add_subdirectory_ifdef(CONFIG_I3G4250D i3g4250d) |
| add_subdirectory_ifdef(CONFIG_ICM42605 icm42605) |
| add_subdirectory_ifdef(CONFIG_ICM42670 icm42670) |
| add_subdirectory_ifdef(CONFIG_IIS2DH iis2dh) |
| add_subdirectory_ifdef(CONFIG_IIS2DLPC iis2dlpc) |
| add_subdirectory_ifdef(CONFIG_IIS2ICLX iis2iclx) |
| add_subdirectory_ifdef(CONFIG_IIS2MDC iis2mdc) |
| add_subdirectory_ifdef(CONFIG_IIS3DHHC iis3dhhc) |
| add_subdirectory_ifdef(CONFIG_INA219 ina219) |
| add_subdirectory_ifdef(CONFIG_INA23X ina23x) |
| add_subdirectory_ifdef(CONFIG_ISL29035 isl29035) |
| add_subdirectory_ifdef(CONFIG_ISM330DHCX ism330dhcx) |
| add_subdirectory_ifdef(CONFIG_LIS2DH lis2dh) |
| add_subdirectory_ifdef(CONFIG_LIS2DS12 lis2ds12) |
| add_subdirectory_ifdef(CONFIG_LIS2DW12 lis2dw12) |
| add_subdirectory_ifdef(CONFIG_LIS2MDL lis2mdl) |
| add_subdirectory_ifdef(CONFIG_LIS3MDL lis3mdl) |
| add_subdirectory_ifdef(CONFIG_LM75 lm75) |
| add_subdirectory_ifdef(CONFIG_LM77 lm77) |
| add_subdirectory_ifdef(CONFIG_LPS22HB lps22hb) |
| add_subdirectory_ifdef(CONFIG_LPS22HH lps22hh) |
| add_subdirectory_ifdef(CONFIG_LPS25HB lps25hb) |
| add_subdirectory_ifdef(CONFIG_LSM303DLHC_MAGN lsm303dlhc_magn) |
| add_subdirectory_ifdef(CONFIG_LSM6DS0 lsm6ds0) |
| add_subdirectory_ifdef(CONFIG_LSM6DSL lsm6dsl) |
| add_subdirectory_ifdef(CONFIG_LSM6DSO lsm6dso) |
| add_subdirectory_ifdef(CONFIG_LSM9DS0_GYRO lsm9ds0_gyro) |
| add_subdirectory_ifdef(CONFIG_LSM9DS0_MFD lsm9ds0_mfd) |
| add_subdirectory_ifdef(CONFIG_MAX17055 max17055) |
| add_subdirectory_ifdef(CONFIG_MAX17262 max17262) |
| add_subdirectory_ifdef(CONFIG_MAX30101 max30101) |
| add_subdirectory_ifdef(CONFIG_MAX31875 max31875) |
| add_subdirectory_ifdef(CONFIG_MAX44009 max44009) |
| add_subdirectory_ifdef(CONFIG_MAX6675 max6675) |
| add_subdirectory_ifdef(CONFIG_MCP9808 mcp9808) |
| add_subdirectory_ifdef(CONFIG_MHZ19B mhz19b) |
| add_subdirectory_ifdef(CONFIG_MPR mpr) |
| add_subdirectory_ifdef(CONFIG_MPU6050 mpu6050) |
| add_subdirectory_ifdef(CONFIG_MPU9250 mpu9250) |
| add_subdirectory_ifdef(CONFIG_MS5607 ms5607) |
| add_subdirectory_ifdef(CONFIG_MS5837 ms5837) |
| add_subdirectory_ifdef(CONFIG_OPT3001 opt3001) |
| add_subdirectory_ifdef(CONFIG_PMS7003 pms7003) |
| add_subdirectory_ifdef(CONFIG_QDEC_NRFX qdec_nrfx) |
| add_subdirectory_ifdef(CONFIG_QDEC_SAM qdec_sam) |
| add_subdirectory_ifdef(CONFIG_TEMP_NRF5 nrf5) |
| add_subdirectory_ifdef(CONFIG_SBS_GAUGE sbs_gauge) |
| add_subdirectory_ifdef(CONFIG_SGP40 sgp40) |
| add_subdirectory_ifdef(CONFIG_SHTCX shtcx) |
| add_subdirectory_ifdef(CONFIG_SHT3XD sht3xd) |
| add_subdirectory_ifdef(CONFIG_SHT4X sht4x) |
| add_subdirectory_ifdef(CONFIG_SI7006 si7006) |
| add_subdirectory_ifdef(CONFIG_SI7055 si7055) |
| add_subdirectory_ifdef(CONFIG_SI7060 si7060) |
| add_subdirectory_ifdef(CONFIG_SI7210 si7210) |
| add_subdirectory_ifdef(CONFIG_SM351LT sm351lt) |
| add_subdirectory_ifdef(CONFIG_HAS_STMEMSC stmemsc) |
| add_subdirectory_ifdef(CONFIG_STM32_TEMP stm32_temp) |
| add_subdirectory_ifdef(CONFIG_STM32_VBAT stm32_vbat) |
| add_subdirectory_ifdef(CONFIG_STTS751 stts751) |
| add_subdirectory_ifdef(CONFIG_SX9500 sx9500) |
| add_subdirectory_ifdef(CONFIG_TH02 th02) |
| add_subdirectory_ifdef(CONFIG_TMP007 tmp007) |
| add_subdirectory_ifdef(CONFIG_TMP108 tmp108) |
| add_subdirectory_ifdef(CONFIG_TMP112 tmp112) |
| add_subdirectory_ifdef(CONFIG_TMP116 tmp116) |
| add_subdirectory_ifdef(CONFIG_VCNL4040 vcnl4040) |
| add_subdirectory_ifdef(CONFIG_VL53L0X vl53l0x) |
| add_subdirectory_ifdef(CONFIG_TEMP_KINETIS nxp_kinetis_temp) |
| add_subdirectory_ifdef(CONFIG_TACH_XEC mchp_tach_xec) |
| add_subdirectory_ifdef(CONFIG_ITDS wsen_itds) |
| add_subdirectory_ifdef(CONFIG_MCUX_ACMP mcux_acmp) |
| add_subdirectory_ifdef(CONFIG_TACH_NPCX nuvoton_tach_npcx) |
| add_subdirectory_ifdef(CONFIG_ADC_CMP_NPCX nuvoton_adc_cmp_npcx) |
| add_subdirectory_ifdef(CONFIG_TACH_IT8XXX2 ite_tach_it8xxx2) |
| add_subdirectory_ifdef(CONFIG_VCMP_IT8XXX2 ite_vcmp_it8xxx2) |
| |
| if(CONFIG_USERSPACE OR CONFIG_SENSOR_SHELL OR CONFIG_SENSOR_SHELL_BATTERY) |
| # The above if() is needed or else CMake would complain about |
| # empty library. |
| |
| zephyr_library() |
| zephyr_library_sources_ifdef(CONFIG_USERSPACE sensor_handlers.c) |
| zephyr_library_sources_ifdef(CONFIG_SENSOR_SHELL sensor_shell.c) |
| zephyr_library_sources_ifdef(CONFIG_SENSOR_SHELL_BATTERY shell_battery.c) |
| |
| endif() |