2011-04-03 16:26:05 +02:00
|
|
|
############################################################################
|
2011-04-19 20:51:02 +02:00
|
|
|
# drivers/sensors/Make.defs
|
2011-04-03 16:26:05 +02:00
|
|
|
#
|
2021-03-04 07:10:42 +01:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2011-04-03 16:26:05 +02:00
|
|
|
#
|
2021-03-04 07:10:42 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2011-04-03 16:26:05 +02:00
|
|
|
#
|
2021-03-04 07:10:42 +01:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2011-04-03 16:26:05 +02:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2011-05-16 17:09:39 +02:00
|
|
|
# Include sensor drivers
|
2014-12-16 15:16:53 +01:00
|
|
|
|
2014-12-16 16:54:32 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS),y)
|
|
|
|
|
2020-10-19 15:24:13 +02:00
|
|
|
CSRCS += sensor.c
|
|
|
|
|
2022-03-03 14:40:58 +01:00
|
|
|
ifeq ($(CONFIG_USENSOR),y)
|
2023-11-16 14:09:08 +01:00
|
|
|
CSRCS += usensor.c
|
2022-03-03 14:40:58 +01:00
|
|
|
endif
|
|
|
|
|
2022-04-08 16:46:29 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_RPMSG),y)
|
2023-11-16 14:09:08 +01:00
|
|
|
CSRCS += sensor_rpmsg.c
|
2022-04-08 16:46:29 +02:00
|
|
|
endif
|
|
|
|
|
2023-05-19 17:11:04 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_GPS),y)
|
2023-09-21 09:33:57 +02:00
|
|
|
CSRCS += gps_uorb.c
|
2023-05-19 17:11:04 +02:00
|
|
|
endif
|
|
|
|
|
2020-10-19 15:30:22 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_WTGAHRS2),y)
|
2023-09-21 09:33:57 +02:00
|
|
|
CSRCS += wtgahrs2_uorb.c
|
2020-10-19 15:30:22 +02:00
|
|
|
endif
|
|
|
|
|
2021-02-09 04:43:58 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_FAKESENSOR),y)
|
2023-09-21 09:33:57 +02:00
|
|
|
CSRCS += fakesensor_uorb.c
|
2021-02-09 04:43:58 +01:00
|
|
|
endif
|
|
|
|
|
2023-07-17 15:56:34 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_GOLDFISH_GPS),y)
|
2023-09-21 09:33:57 +02:00
|
|
|
CSRCS += goldfish_gps_uorb.c
|
2023-07-17 15:56:34 +02:00
|
|
|
endif
|
|
|
|
|
2023-07-18 08:48:03 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_GOLDFISH_SENSOR),y)
|
|
|
|
CSRCS += goldfish_sensor_uorb.c
|
|
|
|
endif
|
|
|
|
|
2017-08-18 02:52:54 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_HCSR04),y)
|
|
|
|
CSRCS += hc_sr04.c
|
|
|
|
endif
|
|
|
|
|
2014-12-16 15:16:53 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_ADXL345),y)
|
|
|
|
CSRCS += adxl345_base.c
|
|
|
|
endif
|
|
|
|
|
2018-09-01 15:23:35 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_DHTXX),y)
|
|
|
|
CSRCS += dhtxx.c
|
|
|
|
endif
|
|
|
|
|
2023-06-02 09:57:52 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_BMI270),y)
|
2024-02-27 19:05:03 +01:00
|
|
|
CSRCS += bmi270_base.c
|
|
|
|
ifeq ($(CONFIG_SENSORS_BMI270_UORB),y)
|
|
|
|
CSRCS += bmi270_bmi.c
|
|
|
|
else
|
2023-06-02 09:57:52 +02:00
|
|
|
CSRCS += bmi270.c
|
|
|
|
endif
|
2024-02-27 19:05:03 +01:00
|
|
|
endif
|
2023-06-02 09:57:52 +02:00
|
|
|
|
2011-04-19 20:51:02 +02:00
|
|
|
# These drivers depend on I2C support
|
2011-04-03 16:26:05 +02:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_I2C),y)
|
2012-08-17 16:07:48 +02:00
|
|
|
|
2017-10-20 14:37:38 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_APDS9960),y)
|
|
|
|
CSRCS += apds9960.c
|
|
|
|
endif
|
|
|
|
|
2023-02-11 13:08:40 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_APDS9922),y)
|
|
|
|
CSRCS += apds9922.c
|
|
|
|
endif
|
|
|
|
|
2019-07-10 13:31:36 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_AK09912),y)
|
|
|
|
CSRCS += ak09912.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 17:45:46 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_AS5048B),y)
|
2015-08-07 16:24:29 +02:00
|
|
|
CSRCS += as5048b.c
|
|
|
|
endif
|
|
|
|
|
2019-06-05 14:50:03 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_AS726X),y)
|
|
|
|
CSRCS += as726x.c
|
|
|
|
endif
|
|
|
|
|
2020-10-13 12:49:34 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_FXOS8700CQ),y)
|
|
|
|
CSRCS += fxos8700cq.c
|
|
|
|
endif
|
|
|
|
|
2021-03-17 22:48:48 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_HYT271),y)
|
2023-09-21 09:33:57 +02:00
|
|
|
CSRCS += hyt271_uorb.c
|
2021-03-17 22:48:48 +01:00
|
|
|
endif
|
|
|
|
|
2017-08-24 17:54:23 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_KXTJ9),y)
|
2017-02-18 15:08:41 +01:00
|
|
|
CSRCS += kxtj9.c
|
2016-08-02 18:38:14 +02:00
|
|
|
endif
|
|
|
|
|
2017-08-24 17:54:23 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_LIS2DH),y)
|
2017-04-03 15:28:22 +02:00
|
|
|
CSRCS += lis2dh.c
|
|
|
|
endif
|
|
|
|
|
2014-05-08 15:39:10 +02:00
|
|
|
ifeq ($(CONFIG_LIS331DL),y)
|
2011-05-16 17:09:39 +02:00
|
|
|
CSRCS += lis331dl.c
|
2012-08-17 16:07:48 +02:00
|
|
|
endif
|
2011-09-10 18:20:09 +02:00
|
|
|
|
2018-08-25 16:19:31 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_LSM303AGR),y)
|
|
|
|
CSRCS += lsm303agr.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SENSORS_LSM6DSL),y)
|
|
|
|
CSRCS += lsm6dsl.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 18:48:20 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_LSM9DS1),y)
|
2023-08-26 15:44:52 +02:00
|
|
|
CSRCS += lsm9ds1_base.c
|
|
|
|
ifeq ($(CONFIG_SENSORS_LSM9DS1_UORB),y)
|
|
|
|
CSRCS += lsm9ds1_uorb.c
|
|
|
|
else
|
|
|
|
CSRCS += lsm9ds1.c
|
|
|
|
endif
|
2016-01-09 18:43:05 +01:00
|
|
|
endif
|
|
|
|
|
2021-08-26 10:07:36 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_MSA301),y)
|
|
|
|
CSRCS += msa301.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 18:48:20 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_LPS25H),y)
|
2017-03-31 13:53:43 +02:00
|
|
|
CSRCS += lps25h.c
|
|
|
|
endif
|
|
|
|
|
2014-12-16 15:16:53 +01:00
|
|
|
ifeq ($(CONFIG_ADXL345_I2C),y)
|
|
|
|
CSRCS += adxl345_i2c.c
|
|
|
|
endif
|
2016-04-15 16:16:16 +02:00
|
|
|
|
2023-05-31 19:46:08 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_BH1749NUC),y)
|
2024-03-02 09:28:16 +01:00
|
|
|
CSRCS += bh1749nuc_base.c
|
|
|
|
ifeq ($(CONFIG_SENSORS_BH1749NUC_UORB),y)
|
|
|
|
CSRCS += bh1749nuc_uorb.c
|
|
|
|
else
|
2023-05-31 19:46:08 +02:00
|
|
|
CSRCS += bh1749nuc.c
|
|
|
|
endif
|
2024-03-02 09:28:16 +01:00
|
|
|
endif
|
2023-05-31 19:46:08 +02:00
|
|
|
|
2017-08-24 17:45:46 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_BH1750FVI),y)
|
2016-04-15 16:16:16 +02:00
|
|
|
CSRCS += bh1750fvi.c
|
|
|
|
endif
|
2014-12-16 15:16:53 +01:00
|
|
|
|
2017-08-24 17:45:46 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_BMG160),y)
|
2016-08-24 17:41:04 +02:00
|
|
|
CSRCS += bmg160.c
|
|
|
|
endif
|
|
|
|
|
2019-06-20 15:32:36 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_BMI160),y)
|
2023-08-14 14:58:40 +02:00
|
|
|
CSRCS += bmi160_base.c
|
2023-08-14 14:58:40 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_BMI160_UORB),y)
|
|
|
|
CSRCS += bmi160_uorb.c
|
|
|
|
else
|
2019-06-20 15:32:36 +02:00
|
|
|
CSRCS += bmi160.c
|
|
|
|
endif
|
2023-08-14 14:58:40 +02:00
|
|
|
endif
|
2019-06-20 15:32:36 +02:00
|
|
|
|
2023-05-31 19:37:38 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_BMM150),y)
|
|
|
|
CSRCS += bmm150.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 17:45:46 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_BMP180),y)
|
2023-09-06 05:02:33 +02:00
|
|
|
CSRCS += bmp180_base.c
|
|
|
|
ifeq ($(CONFIG_SENSORS_BMP180_UORB),y)
|
|
|
|
CSRCS += bmp180_uorb.c
|
|
|
|
else
|
2015-07-20 15:18:27 +02:00
|
|
|
CSRCS += bmp180.c
|
|
|
|
endif
|
2023-09-06 05:02:33 +02:00
|
|
|
endif
|
2015-07-20 15:18:27 +02:00
|
|
|
|
2019-07-10 13:31:36 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_BMP280),y)
|
2023-09-21 09:33:57 +02:00
|
|
|
CSRCS += bmp280_uorb.c
|
2019-07-10 13:31:36 +02:00
|
|
|
endif
|
|
|
|
|
2023-07-14 14:57:13 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_BME680),y)
|
2023-09-21 09:33:57 +02:00
|
|
|
CSRCS += bme680_uorb.c
|
2023-07-14 14:57:13 +02:00
|
|
|
endif
|
|
|
|
|
2019-09-04 19:26:26 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_ISL29023),y)
|
|
|
|
CSRCS += isl29023.c
|
|
|
|
endif
|
2019-07-10 13:31:36 +02:00
|
|
|
|
2017-08-24 17:22:36 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_HTS221),y)
|
2017-03-30 17:34:03 +02:00
|
|
|
CSRCS += hts221.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 18:10:00 +02:00
|
|
|
ifeq ($(CONFIG_LM75_I2C),y)
|
2011-09-10 18:20:09 +02:00
|
|
|
CSRCS += lm75.c
|
|
|
|
endif
|
2015-08-06 19:07:33 +02:00
|
|
|
|
2017-08-24 18:10:00 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_LM92),y)
|
2015-08-06 19:07:33 +02:00
|
|
|
CSRCS += lm92.c
|
|
|
|
endif
|
2015-08-07 00:33:02 +02:00
|
|
|
|
2018-01-29 14:56:06 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_MAX44009),y)
|
|
|
|
CSRCS += max44009.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 18:48:20 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_MB7040),y)
|
2015-08-11 16:03:10 +02:00
|
|
|
CSRCS += mb7040.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 18:48:20 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_MCP9844),y)
|
2016-01-15 14:25:58 +01:00
|
|
|
CSRCS += mcp9844.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 18:48:20 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_MLX90393),y)
|
2016-08-23 18:48:08 +02:00
|
|
|
CSRCS += mlx90393.c
|
|
|
|
endif
|
|
|
|
|
2018-10-28 22:58:14 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_MLX90614),y)
|
|
|
|
CSRCS += mlx90614.c
|
|
|
|
endif
|
|
|
|
|
2023-11-28 02:06:04 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_MS56XX),y)
|
|
|
|
CSRCS += ms56xx_uorb.c
|
2022-01-22 17:47:49 +01:00
|
|
|
endif
|
|
|
|
|
2017-08-24 18:48:20 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_MS58XX),y)
|
2015-08-14 19:47:18 +02:00
|
|
|
CSRCS += ms58xx.c
|
2015-08-11 21:05:56 +02:00
|
|
|
endif
|
|
|
|
|
2017-08-24 18:48:20 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_LTC4151),y)
|
2017-07-28 13:05:56 +02:00
|
|
|
CSRCS += ltc4151.c
|
|
|
|
endif
|
|
|
|
|
2017-10-11 01:03:56 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_INA219),y)
|
|
|
|
CSRCS += ina219.c
|
|
|
|
endif
|
|
|
|
|
2018-10-19 17:04:56 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_INA226),y)
|
|
|
|
CSRCS += ina226.c
|
|
|
|
endif
|
|
|
|
|
2018-05-03 00:29:59 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_INA3221),y)
|
|
|
|
CSRCS += ina3221.c
|
|
|
|
endif
|
|
|
|
|
2019-01-09 14:35:44 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_SCD30),y)
|
|
|
|
CSRCS += scd30.c
|
|
|
|
endif
|
|
|
|
|
2022-04-11 09:30:13 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_SCD41),y)
|
|
|
|
CSRCS += scd41.c
|
|
|
|
endif
|
|
|
|
|
2019-01-09 14:35:44 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_SGP30),y)
|
|
|
|
CSRCS += sgp30.c
|
|
|
|
endif
|
|
|
|
|
2019-12-02 15:36:09 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_AHT10),y)
|
|
|
|
CSRCS += aht10.c
|
|
|
|
endif
|
|
|
|
|
2018-03-13 15:26:15 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_SHT21),y)
|
|
|
|
CSRCS += sht21.c
|
|
|
|
endif
|
|
|
|
|
2019-08-08 15:34:15 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_SHT3X),y)
|
|
|
|
CSRCS += sht3x.c
|
|
|
|
endif
|
|
|
|
|
2019-01-09 14:35:44 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_SPS30),y)
|
|
|
|
CSRCS += sps30.c
|
|
|
|
endif
|
|
|
|
|
2018-06-15 14:52:16 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_T67XX),y)
|
|
|
|
CSRCS += t67xx.c
|
|
|
|
endif
|
|
|
|
|
2022-10-08 10:31:29 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_LTR308),y)
|
2023-09-21 09:33:57 +02:00
|
|
|
CSRCS += ltr308_uorb.c
|
2022-10-08 10:31:29 +02:00
|
|
|
endif
|
|
|
|
|
2023-05-31 19:37:38 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_BMM150),y)
|
|
|
|
CSRCS += bmm150_uorb.c
|
|
|
|
endif
|
|
|
|
|
2014-12-16 15:16:53 +01:00
|
|
|
endif # CONFIG_I2C
|
|
|
|
|
|
|
|
# These drivers depend on SPI support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SPI),y)
|
2019-03-07 23:50:37 +01:00
|
|
|
|
2014-12-16 15:16:53 +01:00
|
|
|
ifeq ($(CONFIG_ADXL345_SPI),y)
|
|
|
|
CSRCS += adxl345_spi.c
|
2011-04-03 16:26:05 +02:00
|
|
|
endif
|
2015-02-12 19:21:05 +01:00
|
|
|
|
2024-04-15 13:47:43 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_ADXL362),y)
|
|
|
|
CSRCS += adxl362_uorb.c
|
|
|
|
endif
|
|
|
|
|
2018-04-07 22:46:54 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_ADXL372),y)
|
2024-03-09 10:31:40 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_ADXL372_UORB),y)
|
|
|
|
CSRCS += adxl372_uorb.c
|
|
|
|
else
|
2018-04-07 22:46:54 +02:00
|
|
|
CSRCS += adxl372.c
|
|
|
|
endif
|
2024-03-09 10:31:40 +01:00
|
|
|
endif
|
2018-04-07 22:46:54 +02:00
|
|
|
|
2017-05-10 19:56:02 +02:00
|
|
|
ifeq ($(CONFIG_LIS3DSH),y)
|
|
|
|
CSRCS += lis3dsh.c
|
|
|
|
endif
|
|
|
|
|
2018-02-13 20:00:29 +01:00
|
|
|
ifeq ($(CONFIG_LIS3DH),y)
|
|
|
|
CSRCS += lis3dh.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 18:10:00 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_MAX31855),y)
|
2015-09-13 23:56:48 +02:00
|
|
|
CSRCS += max31855.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 18:10:00 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_MAX6675),y)
|
2015-10-18 01:52:47 +02:00
|
|
|
CSRCS += max6675.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 18:48:20 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_MPL115A),y)
|
2015-02-12 19:21:05 +01:00
|
|
|
CSRCS += mpl115a.c
|
|
|
|
endif
|
2016-08-23 16:22:47 +02:00
|
|
|
|
2017-08-24 18:10:00 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_LIS3MDL),y)
|
2016-08-23 16:22:47 +02:00
|
|
|
CSRCS += lis3mdl.c
|
|
|
|
endif
|
|
|
|
|
2018-04-07 22:46:54 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_LSM330SPI),y)
|
|
|
|
CSRCS += lsm330_spi.c
|
|
|
|
endif
|
|
|
|
|
2017-02-19 16:45:47 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_L3GD20),y)
|
2023-09-21 09:33:57 +02:00
|
|
|
CSRCS += l3gd20_uorb.c
|
2017-02-19 16:45:47 +01:00
|
|
|
endif
|
|
|
|
|
2019-08-28 23:35:43 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_ADT7320),y)
|
|
|
|
CSRCS += adt7320.c
|
|
|
|
endif
|
|
|
|
|
2022-06-12 11:48:27 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_AS5048A),y)
|
|
|
|
CSRCS += as5048a.c
|
|
|
|
endif
|
|
|
|
|
2014-12-16 15:16:53 +01:00
|
|
|
endif # CONFIG_SPI
|
2011-04-03 16:26:05 +02:00
|
|
|
|
2021-04-10 14:01:10 +02:00
|
|
|
# These drivers depend on 1WIRE support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_1WIRE),y)
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SENSORS_DS18B20),y)
|
2023-09-21 09:33:57 +02:00
|
|
|
CSRCS += ds18b20_uorb.c
|
2021-04-10 14:01:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
endif # CONFIG_1WIRE
|
|
|
|
|
2020-06-25 02:30:53 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_MPU60X0),y)
|
|
|
|
CSRCS += mpu60x0.c
|
|
|
|
endif
|
|
|
|
|
2023-04-07 14:22:42 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_MPU9250),y)
|
2023-09-21 09:33:57 +02:00
|
|
|
CSRCS += mpu9250_uorb.c
|
2023-04-07 14:22:42 +02:00
|
|
|
endif
|
|
|
|
|
2012-02-14 16:32:57 +01:00
|
|
|
# Quadrature encoder upper half
|
|
|
|
|
2017-08-24 18:26:53 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
2012-02-14 16:32:57 +01:00
|
|
|
CSRCS += qencoder.c
|
|
|
|
endif
|
|
|
|
|
2021-08-18 13:55:44 +02:00
|
|
|
# 3-phase Hall effect sensor upper half
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SENSORS_HALL3PHASE),y)
|
|
|
|
CSRCS += hall3ph.c
|
|
|
|
endif
|
|
|
|
|
2016-11-13 18:44:28 +01:00
|
|
|
# Vishay VEML6070
|
|
|
|
|
2017-08-24 18:26:53 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_VEML6070),y)
|
2016-11-13 18:44:28 +01:00
|
|
|
CSRCS += veml6070.c
|
|
|
|
endif
|
|
|
|
|
2019-07-10 15:58:20 +02:00
|
|
|
# ST VL53L1X
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SENSORS_VL53L1X),y)
|
|
|
|
CSRCS += vl53l1x.c
|
|
|
|
endif
|
|
|
|
|
2016-09-16 20:45:53 +02:00
|
|
|
# Sensixs XEN1210
|
|
|
|
|
2017-08-24 18:26:53 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_XEN1210),y)
|
2016-09-16 20:45:53 +02:00
|
|
|
CSRCS += xen1210.c
|
|
|
|
endif
|
|
|
|
|
2015-10-13 15:27:16 +02:00
|
|
|
# Zero Cross upper half
|
|
|
|
|
2017-08-24 18:26:53 +02:00
|
|
|
ifeq ($(CONFIG_SENSORS_ZEROCROSS),y)
|
2015-10-13 15:27:16 +02:00
|
|
|
CSRCS += zerocross.c
|
|
|
|
endif
|
|
|
|
|
2020-05-05 07:04:22 +02:00
|
|
|
# TI HDC1008
|
2020-05-04 21:16:07 +02:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_SENSORS_HDC1008),y)
|
|
|
|
CSRCS += hdc1008.c
|
|
|
|
endif
|
|
|
|
|
2023-10-06 06:10:50 +02:00
|
|
|
# ANALOG MAX31865
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SENSORS_MAX31865),y)
|
|
|
|
CSRCS += max31865.c
|
|
|
|
endif
|
|
|
|
|
2011-05-16 17:09:39 +02:00
|
|
|
# Include sensor driver build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path sensors
|
|
|
|
VPATH += :sensors
|
2022-11-01 14:47:53 +01:00
|
|
|
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)drivers$(DELIM)sensors
|
2014-12-16 16:54:32 +01:00
|
|
|
|
2015-07-20 15:18:27 +02:00
|
|
|
endif # CONFIG_SENSORS
|