4719e44b8b
WIP WIP - ALS now OK with full IOCTL. WIP WIP ALS now works as intended WIP - getting to bottom of crash when ctrl-c the app Seems to all work... ioctl #define changes Update ioctl.h Maybe final changes Maybe final changes - again Delete .settings directory Delete nuttx Default.launch Maybe final changes - again changes after initial feedback changes after initial feedback Add snerr error when incorrect device ID seen Update apds9922.c Revert "Merge branch 'apds9922' of https://github.com/TimJTi/nuttx into apds9922" This reverts commit 8fdf5cbfb783d25251d13bc338ece6adca1308bc, reversing changes made to 0d58237ba27f3cf87cf711658f5388d974be502e. Improve probe error messages APDS9922 WIP WIP - ALS now OK with full IOCTL. WIP WIP ALS now works as intended WIP - getting to bottom of crash when ctrl-c the app Seems to all work... ioctl #define changes Update ioctl.h Maybe final changes Maybe final changes - again Delete .settings directory Delete nuttx Default.launch Maybe final changes - again changes after initial feedback changes after initial feedback Add snerr error when incorrect device ID seen Update apds9922.c Revert "Merge branch 'apds9922' of https://github.com/TimJTi/nuttx into apds9922" This reverts commit 8fdf5cbfb783d25251d13bc338ece6adca1308bc, reversing changes made to 0d58237ba27f3cf87cf711658f5388d974be502e. Improve probe error messages Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Update drivers/sensors/apds9922.c Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> Delete .gitignore Changes after PR review Remove static arrays from header file Update apds9922.c improvements to enum usage Restore .gitignore Update Kconfig Update .gitignore Update .gitignore
1310 lines
29 KiB
Plaintext
1310 lines
29 KiB
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
menuconfig SENSORS
|
|
bool "Sensor Device Support"
|
|
default n
|
|
---help---
|
|
Drivers for various sensors
|
|
|
|
if SENSORS
|
|
|
|
config USENSOR
|
|
bool "Usensor Device Support"
|
|
default n
|
|
---help---
|
|
Allow application to register user sensor by /dev/usensor.
|
|
|
|
config SENSORS_RPMSG
|
|
bool "Sensor rpmsg Support"
|
|
default n
|
|
depends on RPTUN
|
|
---help---
|
|
Allow application to read or control remote sensor device by rpmsg.
|
|
|
|
config SENSORS_WTGAHRS2
|
|
bool "Wtgahrs2 Sensor Support"
|
|
default n
|
|
---help---
|
|
We can read sensor data by serial interface. It need the hardware sensor
|
|
wtgashrs2(JY901) as data source. This sensor can generate accelerometer,
|
|
gyroscope, magnetic, barometer and gps data.
|
|
|
|
config SENSORS_FAKESENSOR
|
|
bool "Fake Sensor Support"
|
|
default n
|
|
---help---
|
|
Simulate physical sensor by reading data from csv file.
|
|
The file structure is as follows:
|
|
First row : set interval, unit millisecond
|
|
Second row: csv file header
|
|
third row : data
|
|
(Each line should not exceed 50 characters)
|
|
For example:
|
|
interval:12
|
|
x,y,z
|
|
2.1234,3.23443,2.23456
|
|
...
|
|
|
|
config SENSORS_APDS9960
|
|
bool "Avago APDS-9960 Gesture Sensor support"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Avago APDS-9960 gesture sensor.
|
|
|
|
config APDS9960_I2C_FREQUENCY
|
|
int "APDS-9960 I2C frequency"
|
|
default 400000
|
|
depends on SENSORS_APDS9960
|
|
|
|
config SENSORS_APDS9922
|
|
bool "Broadcom APDS-9922 Proximity and Ambient Light Sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Broadcom APDS-9922 proximity and ambient light sensor.
|
|
|
|
config APDS9922_I2C_FREQUENCY
|
|
int "APDS-9922 I2C frequency"
|
|
default 400000
|
|
depends on SENSORS_APDS9922
|
|
|
|
config APDS9922_ALS_NPOLLWAITERS
|
|
int "APDS-9922 - number of ALS poll waiters"
|
|
default 2
|
|
depends on SENSORS_APDS9922
|
|
---help---
|
|
Sets the number of poll waiters for the ambient light sensor
|
|
|
|
config APDS9922_PS_NPOLLWAITERS
|
|
int "APDS-9922 - number of PS poll waiters"
|
|
default 2
|
|
depends on SENSORS_APDS9922
|
|
---help---
|
|
Sets the number of poll waiters for the proximity sensor
|
|
|
|
config SENSORS_AK09912
|
|
bool "Asahi AK09911/AK09912 Compass Sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver for AK09911/AK09912 Compass sensor.
|
|
|
|
config SENSORS_AS5048B
|
|
bool "AMS AS5048B Magnetic Rotary Encoder support"
|
|
default n
|
|
select I2C
|
|
select SENSORS_QENCODER
|
|
---help---
|
|
Enable driver support for the AMS AS5048B magnetic rotary encoder.
|
|
|
|
config SENSORS_AS5048A
|
|
bool "AMS AS5048A Magnetic Rotary Encoder support"
|
|
default n
|
|
select SPI
|
|
select SENSORS_QENCODER
|
|
---help---
|
|
Enable driver support for the AMS AS5048A magnetic rotary encoder.
|
|
|
|
config SENSORS_AS726X
|
|
bool "AMS AS726X Spetral sensor support"
|
|
default n
|
|
select I2C
|
|
depends on ALLOW_BSD_COMPONENTS
|
|
---help---
|
|
Enable driver support for the AS726X Spectral Sensor.
|
|
|
|
config SENSORS_BH1750FVI
|
|
bool "Rohm BH1750FVI Ambient Light Sensor support"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Rohm BH1750FVI light sensor.
|
|
|
|
config BH1750FVI_I2C_FREQUENCY
|
|
int "BH1750FVI I2C frequency"
|
|
default 400000
|
|
depends on SENSORS_BH1750FVI
|
|
|
|
config SENSORS_BMG160
|
|
bool "Bosch BMG160 Gyroscope Sensor support"
|
|
default n
|
|
select SPI
|
|
---help---
|
|
Enable driver support for the Bosch BMG160 gyroscope sensor.
|
|
|
|
config SENSORS_BMI160
|
|
bool "Bosch BMI160 Inertial Measurement Sensor support"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Bosch BMI160 Inertial
|
|
Measurement sensor
|
|
|
|
if SENSORS_BMI160
|
|
|
|
choice
|
|
prompt "BMI160 Interface"
|
|
default SENSORS_BMI160_SPI
|
|
|
|
config SENSORS_BMI160_I2C
|
|
bool "BMI160 I2C Interface"
|
|
select I2C
|
|
---help---
|
|
Enables support for the I2C interface
|
|
|
|
config SENSORS_BMI160_SPI
|
|
bool "BMI160 SPI Interface"
|
|
select SPI
|
|
---help---
|
|
Enables support for the SPI interface
|
|
|
|
endchoice
|
|
|
|
choice
|
|
prompt "I2C Address"
|
|
default BMI160_I2C_ADDR_68
|
|
|
|
config BMI160_I2C_ADDR_68
|
|
bool "0x68"
|
|
---help---
|
|
Default address.
|
|
If SDO pin is pulled to GND, use 0x68
|
|
|
|
config BMI160_I2C_ADDR_69
|
|
bool "0x69"
|
|
---help---
|
|
If SDO pin is pulled to VDDIO, use 0x69
|
|
|
|
endchoice
|
|
endif
|
|
|
|
config SENSORS_BMP180
|
|
bool "Bosch BMP180 Barometer Sensor support"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Bosch BMP180 barometer sensor.
|
|
|
|
config SENSORS_BMP280
|
|
bool "Bosch BMP280 Barometric Pressure Sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver for the Bosch BMP280 barometric pressure sensor.
|
|
|
|
if SENSORS_BMP280
|
|
|
|
config BMP280_I2C_FREQUENCY
|
|
int "BMP280 I2C frequency"
|
|
default 400000
|
|
|
|
endif # SENSORS_BMP280
|
|
|
|
config SENSORS_DHTXX
|
|
bool "DHTxx humidity/temperature Sensor support"
|
|
default n
|
|
---help---
|
|
Enable driver support for the DHTxx humidity/temperature sensor.
|
|
|
|
config SENSORS_DS18B20
|
|
bool "Maxim Integrated DS18B20 Temperature Sensor support"
|
|
default n
|
|
select 1WIRE
|
|
---help---
|
|
Enable driver support for the DS18B20 temperature sensor.
|
|
|
|
config SENSORS_DS18B20_POLL
|
|
bool "Enables polling sensor data"
|
|
depends on SENSORS_DS18B20
|
|
default n
|
|
---help---
|
|
Enables polling of sensor.
|
|
|
|
config SENSORS_DS18B20_POLL_INTERVAL
|
|
int "Polling interval in microseconds, default 1 sec"
|
|
depends on SENSORS_DS18B20 && SENSORS_DS18B20_POLL
|
|
default 1000000
|
|
range 0 4294967295
|
|
---help---
|
|
The interval until a new sensor measurement will be triggered.
|
|
|
|
config SENSORS_DS18B20_THREAD_STACKSIZE
|
|
int "Worker thread stack size"
|
|
depends on SENSORS_DS18B20 && SENSORS_DS18B20_POLL
|
|
default 1024
|
|
---help---
|
|
The stack size for the worker thread.
|
|
|
|
config SENSORS_FXOS8700CQ
|
|
bool "NXP FXOS8700CQ Motion Sensor support"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the NXP FXOS8700CQ Motion sensor
|
|
|
|
config SENSORS_HCSR04
|
|
bool "HC-SR04 Distance Measurement Sensor"
|
|
default n
|
|
---help---
|
|
Enable driver support for the HC-SR04 Distance Sensor.
|
|
|
|
config SENSORS_HYT271
|
|
bool "IST HYT271 Humidity and Temperature Sensor support"
|
|
default n
|
|
---help---
|
|
Enable driver support for the HYT271/HYT221/HYT939 humidity/temperature sensor family.
|
|
|
|
config SENSORS_HYT271_POLL
|
|
bool "Enables polling sensor data"
|
|
depends on SENSORS_HYT271
|
|
default n
|
|
---help---
|
|
Enables polling of sensor.
|
|
|
|
config SENSORS_HYT271_POLL_INTERVAL
|
|
int "Polling interval in microseconds, default 1 sec"
|
|
depends on SENSORS_HYT271 && SENSORS_HYT271_POLL
|
|
default 1000000
|
|
range 0 4294967295
|
|
---help---
|
|
The interval until a new sensor measurement will be triggered.
|
|
|
|
config SENSORS_HYT271_THREAD_STACKSIZE
|
|
int "Worker thread stack size"
|
|
depends on SENSORS_HYT271 && SENSORS_HYT271_POLL
|
|
default 1024
|
|
---help---
|
|
The stack size for the worker thread.
|
|
|
|
if SENSORS_HCSR04
|
|
|
|
config HCSR04_DEBUG
|
|
bool "Debug support for the HC-SR04"
|
|
default n
|
|
---help---
|
|
Enables debug features for the HC-SR04
|
|
|
|
config HCSR04_NPOLLWAITERS
|
|
int "Number of waiters to poll"
|
|
default 1
|
|
---help---
|
|
Number of waiters to poll
|
|
|
|
endif # SENSORS_HCSR04
|
|
|
|
config SENSORS_ISL29023
|
|
bool "Renesas ISL29023 ALS sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Renesas ISL29023 ambient light sensor.
|
|
|
|
if SENSORS_ISL29023
|
|
|
|
config ISL29023_I2C_FREQUENCY
|
|
int "ISL29023 I2C frequency"
|
|
default 400000
|
|
|
|
endif # SENSORS_ISL29023
|
|
|
|
config SENSORS_HTS221
|
|
bool "STMicro HTS221 humidity sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the STMicro HTS221 humidity sensor.
|
|
|
|
if SENSORS_HTS221
|
|
|
|
config HTS221_I2C_FREQUENCY
|
|
int "HTS221 I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
|
|
config HTS221_DEBUG
|
|
bool "Debug support for the HTS221"
|
|
default n
|
|
---help---
|
|
Enables debug features for the HTS221
|
|
|
|
config HTS221_NPOLLWAITERS
|
|
int "Number of waiters to poll"
|
|
default 1
|
|
---help---
|
|
Number of waiters to poll
|
|
|
|
endif # SENSORS_HTS221
|
|
|
|
config SENSORS_L3GD20
|
|
bool "STMicro L3GD20 Gyroscope Sensor support"
|
|
default n
|
|
select SPI
|
|
select SCHED_HPWORK if SENSORS_L3GD20_BUFFER_SIZE > 0
|
|
---help---
|
|
Enable driver support for the STMicro L3GD20 gyroscope sensor.
|
|
|
|
config SENSORS_L3GD20_BUFFER_SIZE
|
|
int "size of buffer"
|
|
default 1
|
|
depends on SENSORS_L3GD20
|
|
---help---
|
|
The size of the circular buffer used. If the value equal to zero,
|
|
indicates that the circular buffer is disabled.
|
|
|
|
config SENSOR_KXTJ9
|
|
bool "Kionix KXTJ9 Accelerometer support"
|
|
default n
|
|
select I2C
|
|
|
|
if SENSORS_KXTJ9
|
|
|
|
config KXTJ9_I2C_BUS_SPEED
|
|
int "Kionix KXTJ9 Bus Speed in Hz"
|
|
default 400000
|
|
|
|
endif # SENSORS_KXTJ9
|
|
|
|
config SENSORS_LIS2DH
|
|
bool "STMicro LIS2DH device support"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the STMicro LIS2DH accelerometer
|
|
|
|
if SENSORS_LIS2DH
|
|
|
|
config LIS2DH_I2C_FREQUENCY
|
|
int "LIS2DH I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
|
|
config LIS2DH_DEBUG
|
|
bool "Debug support for the LIS2DH"
|
|
default n
|
|
---help---
|
|
Enables debug features for the LIS2DH
|
|
|
|
config LIS2DH_NPOLLWAITERS
|
|
int "Number of waiters to poll"
|
|
default 2
|
|
---help---
|
|
Maximum number of threads that can be waiting on poll()
|
|
|
|
config LIS2DH_DRIVER_SELFTEST
|
|
bool "Enable selftest in LIS2DH driver"
|
|
default n
|
|
---help---
|
|
Enable selftest in LIS2DH driver
|
|
|
|
endif # SENSORS_LIS2DH
|
|
|
|
config LIS3DSH
|
|
bool "STMicro LIS3DSH 3-Axis accelerometer support"
|
|
default n
|
|
select SPI
|
|
---help---
|
|
Enable driver support for the STMicro LIS3DSH 3-Axis accelerometer.
|
|
|
|
config LIS3DH
|
|
bool "STMicro LIS3DH 3-Axis accelerometer support"
|
|
default n
|
|
select SPI
|
|
depends on ALLOW_BSD_COMPONENTS
|
|
---help---
|
|
Enable driver support for the STMicro LIS3DH 3-Axis accelerometer.
|
|
|
|
config LIS331DL
|
|
bool "STMicro LIS331DL device support"
|
|
default n
|
|
select I2C
|
|
|
|
config LIS331DL_I2C_FREQUENCY
|
|
int "LIS331DL I2C frequency"
|
|
default 100000
|
|
range 1 100000
|
|
depends on LIS331DL
|
|
|
|
config SENSORS_LSM330SPI
|
|
bool "STMicro LSM330 SPI support"
|
|
default n
|
|
select SPI
|
|
---help---
|
|
Enable driver support for the STMicro LSM330 on SPI.
|
|
|
|
config SENSORS_LSM303AGR
|
|
bool "STMicro LSM303AGR support"
|
|
default n
|
|
select I2C
|
|
depends on ALLOW_BSD_COMPONENTS
|
|
---help---
|
|
Enable driver support for the STMicro LSM303AGR.
|
|
|
|
config LSM303AGR_I2C_FREQUENCY
|
|
int "LSM303AGR I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
depends on SN_LSM303AGR
|
|
|
|
config SENSORS_LSM6DSL
|
|
bool "STMicro LSM6DSL support"
|
|
default n
|
|
select I2C
|
|
depends on ALLOW_BSD_COMPONENTS
|
|
---help---
|
|
Enable driver support for the STMicro LSM6DSL.
|
|
|
|
config LSM6DSL_I2C_FREQUENCY
|
|
int "LSM6DSL I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
depends on SN_LSM6DSL
|
|
|
|
config SENSORS_LSM9DS1
|
|
bool "STMicro LSM9DS1 support"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the STMicro LSM9DS1.
|
|
|
|
config SENSORS_MSA301
|
|
bool "MSA301 support"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the MSA301.
|
|
|
|
config LSM9DS1_I2C_FREQUENCY
|
|
int "LSM9DS1 I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
depends on SN_LSM9DS1
|
|
|
|
config SENSORS_LPS25H
|
|
bool "STMicro LPS25H pressure sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the STMicro LPS25H barometer sensor.
|
|
|
|
if SENSORS_LPS25H
|
|
|
|
config LPS25H_I2C_FREQUENCY
|
|
int "LPS25H I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
|
|
config DEBUG_LPS25H
|
|
bool "Debug support for the LPS25H"
|
|
default n
|
|
---help---
|
|
Enables debug features for the LPS25H
|
|
|
|
endif # SENSORS_LPS25H
|
|
|
|
config SENSORS_LTC4151
|
|
bool "LTC4151 current and voltage monitor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the LinearTechnology LTC4151 current and voltage monitor.
|
|
|
|
config LTC4151_I2C_FREQUENCY
|
|
int "LTC4151 I2C frequency"
|
|
default 400000
|
|
depends on SENSORS_LTC4151
|
|
|
|
config SENSORS_INA219
|
|
bool "INA219 current and voltage monitor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Texas Instruments INA219 current and voltage monitor.
|
|
|
|
config INA219_I2C_FREQUENCY
|
|
int "INA219 I2C frequency"
|
|
default 400000
|
|
depends on SENSORS_INA219
|
|
|
|
config SENSORS_INA226
|
|
bool "INA226/INA230 current and voltage monitor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Texas Instruments INA226/INA230 power monitor.
|
|
|
|
config INA226_I2C_FREQUENCY
|
|
int "INA226 I2C frequency"
|
|
default 400000
|
|
depends on SENSORS_INA226
|
|
|
|
config SENSORS_INA3221
|
|
bool "INA3221 current and voltage monitor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Texas Instruments INA3221 current and voltage monitor.
|
|
|
|
config INA3221_I2C_FREQUENCY
|
|
int "INA3221 I2C frequency"
|
|
default 400000
|
|
depends on SENSORS_INA3221
|
|
|
|
config SENSORS_MB7040
|
|
bool "MaxBotix MB7040 Sonar support"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the MaxBotix MB7040 sonar.
|
|
|
|
config MB7040_I2C_FREQUENCY
|
|
int "MB7040 I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
depends on SENSORS_MB7040
|
|
|
|
config SENSORS_MLX90393
|
|
bool "MLX90393 3-Axis Magnetometer"
|
|
default n
|
|
select SPI
|
|
---help---
|
|
Enable driver support for the Melex MLX90393 3-Axis magnetometer.
|
|
|
|
config SENSORS_MLX90614
|
|
bool "MLX90614 Infrared Thermometer"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Melexis MLX90614 Infrared Thermometer.
|
|
|
|
if SENSORS_MLX90614
|
|
config MLX90614_CRC
|
|
bool "Enable CRC Checking (verify if PEC field is valid)"
|
|
default n
|
|
---help---
|
|
Enable checking of CRC-8 (PEC field) checking to guarantee that
|
|
read data is valid.
|
|
endif
|
|
|
|
config SENSORS_MCP9844
|
|
bool "MCP9844 Temperature Sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the MCP9844 I2C Temperature sensor.
|
|
|
|
config MCP9844_I2C_FREQUENCY
|
|
int "MCP9844 I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
depends on SENSORS_MCP9844
|
|
|
|
config SENSORS_MS5611
|
|
bool "MS5611 Barometric Pressure Sensor support"
|
|
default n
|
|
---help---
|
|
Enable driver support for MEAS MS5511 barometer.
|
|
|
|
if SENSORS_MS5611
|
|
|
|
choice
|
|
prompt "MS5611 Interface"
|
|
default MS5611_I2C
|
|
|
|
config MS5611_I2C
|
|
bool "MS5611 I2C Interface"
|
|
select I2C
|
|
---help---
|
|
Enables support for the I2C interface
|
|
|
|
config MS5611_SPI
|
|
bool "MS5611 SPI Interface"
|
|
select SPI
|
|
---help---
|
|
Enables support for the SPI interface.
|
|
|
|
endchoice
|
|
|
|
config MS5611_THREAD_STACKSIZE
|
|
int "Worker thread stack size"
|
|
default 1024
|
|
---help---
|
|
The stack size for the worker thread
|
|
|
|
config MS5611_I2C_FREQUENCY
|
|
int "MS5611 I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
depends on MS5611_I2C
|
|
|
|
endif # SENSORS_MS5611
|
|
|
|
config SENSORS_MS58XX
|
|
bool "MEAS MS58XX Altimeter support"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for MEAS MS58XX altimeters.
|
|
|
|
config MS58XX_I2C_FREQUENCY
|
|
int "MS58XX I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
depends on SENSORS_MS58XX
|
|
|
|
config MS58XX_VDD
|
|
int "MEAS MS58XX VDD"
|
|
default 30
|
|
depends on SENSORS_MS58XX
|
|
|
|
config SENSORS_MPL115A
|
|
bool "Freescale MPL115A Barometer Sensor support"
|
|
default n
|
|
select SPI
|
|
---help---
|
|
Enable driver support for the Freescale MPL115A barometer sensor.
|
|
|
|
config MPL115A_REGDEBUG
|
|
bool "Debug support for the MPL115A"
|
|
default n
|
|
depends on SENSORS_MPL115A
|
|
---help---
|
|
Enables register level debug features for the MPL115A
|
|
|
|
config SENSORS_ADXL345
|
|
bool "Analog Devices ADXL345 Driver"
|
|
default n
|
|
---help---
|
|
Enables support for the ADXL345 driver
|
|
|
|
if SENSORS_ADXL345
|
|
|
|
choice
|
|
prompt "ADXL345 Interface"
|
|
default ADXL345_SPI
|
|
|
|
config ADXL345_SPI
|
|
bool "ADXL345 SPI Interface"
|
|
select SPI
|
|
---help---
|
|
Enables support for the SPI interface.
|
|
|
|
config ADXL345_I2C
|
|
bool "ADXL345 I2C Interface"
|
|
select I2C
|
|
---help---
|
|
Enables support for the I2C interface
|
|
|
|
endchoice
|
|
|
|
config ADXL345_ACTIVELOW
|
|
bool "Active Low Interrupt"
|
|
default n
|
|
---help---
|
|
The ADXL345 interrupt will be inverted. Instead starting low and going
|
|
high, it will start high and will go low when an interrupt is fired.
|
|
Default: Active high/rising edge.
|
|
|
|
config ADXL345_REGDEBUG
|
|
bool "Enable Register-Level ADXL345 Debug"
|
|
default n
|
|
depends on DEBUG_FEATURES
|
|
---help---
|
|
Enable very low register-level debug output.
|
|
|
|
endif # SENSORS_ADXL345
|
|
|
|
config SENSORS_ADXL372
|
|
bool "Analog Devices ADXL372 Sensor support"
|
|
default n
|
|
select SPI
|
|
---help---
|
|
Enable driver support for the Analog Devices ADXL372 Sensor.
|
|
|
|
config SENSORS_MPU60X0
|
|
bool "Invensense MPU60x0 Sensor support"
|
|
default n
|
|
---help---
|
|
Enable driver support for Invensense MPU60x0 MotionTracker(tm) device.
|
|
|
|
if SENSORS_MPU60X0
|
|
|
|
choice
|
|
prompt "MPU60x0 Interface"
|
|
default MPU60X0_SPI
|
|
|
|
config MPU60X0_SPI
|
|
bool "MPU6000 SPI Interface"
|
|
select SPI
|
|
---help---
|
|
Enables support for the SPI interface (MPU6000 only)
|
|
|
|
config MPU60X0_I2C
|
|
bool "MPU60x0 I2C Interface"
|
|
select I2C
|
|
---help---
|
|
Enables support for the I2C interface (MPU6000
|
|
or MPU6050, autodetected during driver initialization)
|
|
|
|
endchoice
|
|
|
|
config MPU60X0_I2C_FREQ
|
|
int "MPU60x0 I2C Frequency"
|
|
depends on MPU60X0_I2C
|
|
default 400000
|
|
|
|
config MPU60X0_EXTI
|
|
bool "Enable interrupts"
|
|
default n
|
|
---help---
|
|
Select this when the MPU60x0's INT pin is connected to an
|
|
interrupt line on the host processor, and identify the pin
|
|
during device registration. The driver will use interrupts to
|
|
manage FIFO-full and/or sample-ready events, depending on how
|
|
the device is being used. The interface will block until the
|
|
next sample is ready, which will naturally synchronize the user
|
|
to the sampling rate chosen during operation.
|
|
Default: No interrupts or blocking, i.e. user-driven sampling.
|
|
|
|
config MPU60X0_EXT_SYNC_SET
|
|
int "MPU60x0 frame sync bit position"
|
|
default 0
|
|
---help---
|
|
EXT_SYNC_SET[2..0]
|
|
EXT_SYNC_SET: frame sync bit position
|
|
(see datasheet, it's ... complicated)
|
|
|
|
config MPU60X0_DLPF_CFG
|
|
int "MPU60x0 digital low-pass filter bandwidth"
|
|
default 1
|
|
---help---
|
|
DLPF_CFG[2..0]
|
|
DLPF_CFG: digital low-pass filter bandwidth
|
|
(see datasheet, it's ... complicated)
|
|
|
|
config MPU60X0_GYRO_FS_SEL
|
|
int "MPU60x0 Gyro FS_SEL"
|
|
default 2
|
|
---help---
|
|
Sets the @fs_sel bit in GYRO_CONFIG to the value provided. Per
|
|
the datasheet, the meaning of @fs_sel is as follows:
|
|
GYRO_CONFIG(0x1b) : XG_ST YG_ST ZG_ST FS_SEL1 FS_SEL0 x x x
|
|
XG_ST, YG_ST, ZG_ST : self-test (unsupported in this driver)
|
|
1 -> activate self-test on X, Y, and/or Z gyros
|
|
FS_SEL[10] : full-scale range select
|
|
0 -> ± 250 deg/sec
|
|
1 -> ± 500 deg/sec
|
|
2 -> ± 1000 deg/sec
|
|
3 -> ± 2000 deg/sec
|
|
|
|
config MPU60X0_ACCEL_AFS_SEL
|
|
int "MPU60x0 Accelerometer AFS_SEL"
|
|
default 2
|
|
---help---
|
|
Sets the @afs_sel bit in ACCEL_CONFIG to the value provided. Per
|
|
the datasheet, the meaning of @afs_sel is as follows:
|
|
ACCEL_CONFIG(0x1c) : XA_ST YA_ST ZA_ST AFS_SEL1 AFS_SEL0 x x x
|
|
XA_ST, YA_ST, ZA_ST : self-test (unsupported in this driver)
|
|
1 -> activate self-test on X, Y, and/or Z accelerometers
|
|
AFS_SEL[10] : full-scale range select
|
|
0 -> ± 2 g
|
|
1 -> ± 4 g
|
|
2 -> ± 8 g
|
|
3 -> ± 16 g
|
|
|
|
endif # SENSORS_MPU60X0
|
|
|
|
config SENSORS_MPU9250
|
|
bool "Invensense MPU9250 Sensor support"
|
|
default n
|
|
---help---
|
|
Enable driver support for Invensense MPU9250 MotionTracker device.
|
|
|
|
if SENSORS_MPU9250
|
|
|
|
choice
|
|
prompt "MPU9250 Interface"
|
|
default MPU9250_SPI
|
|
|
|
config MPU9250_SPI
|
|
bool "MPU9250 SPI Interface"
|
|
select SPI
|
|
---help---
|
|
Enables support for the SPI interface
|
|
|
|
config MPU9250_I2C
|
|
bool "MPU9250 I2C Interface"
|
|
select I2C
|
|
---help---
|
|
Enables support for the I2C interface
|
|
|
|
endchoice
|
|
|
|
config MPU9250_I2C_FREQ
|
|
int "MPU9250 I2C Frequency"
|
|
depends on MPU9250_I2C
|
|
default 400000
|
|
|
|
config MPU9250_MEASURE_FREQ
|
|
int "Default data output rate in Hz"
|
|
default 1000
|
|
---help---
|
|
Default data output rate in Hz
|
|
|
|
config MPU9250_THREAD_STACKSIZE
|
|
int "Worker thread stack size"
|
|
default 1024
|
|
---help---
|
|
The stack size for the worker thread
|
|
|
|
config MPU9250_EXT_SYNC_SET
|
|
int "MPU9250 frame sync bit position"
|
|
default 0
|
|
---help---
|
|
EXT_SYNC_SET[2..0]
|
|
EXT_SYNC_SET: frame sync bit position
|
|
|
|
config MPU9250_DLPF_CFG
|
|
int "MPU9250 gyroscope and temperature low-pass filter setting"
|
|
default 1
|
|
---help---
|
|
DLPF_CFG[2..0]
|
|
DLPF_CFG: digital low-pass filter bandwidth
|
|
|
|
config MPU9250_ACCEL_FCHOICE_B
|
|
int "Inverted version of accel_fchoice"
|
|
default 0
|
|
---help---
|
|
The data output rate of the DLPF filter block can be further
|
|
reduced by a factor of 1/(1+SMPLRT_DIV).
|
|
where SMPLRT_DIV is an 8-bit integer
|
|
|
|
config MPU9250_A_DLPF_CFG
|
|
int "MPU9250 Accelerometer low pass filter setting"
|
|
default 1
|
|
---help---
|
|
A_DLPF_CFG[2..0]
|
|
A_DLPF_CFG: Accelerometer digital low-pass filter bandwidth
|
|
|
|
config MPU9250_GYRO_FS_SEL
|
|
int "MPU9250 Gyro FS_SEL"
|
|
default 2
|
|
---help---
|
|
Sets the @fs_sel bit in GYRO_CONFIG to the value provided. Per
|
|
the datasheet, the meaning of @fs_sel is as follows:
|
|
GYRO_CONFIG(0x1b) : XG_ST YG_ST ZG_ST FS_SEL1 FS_SEL0 x x x
|
|
XG_ST, YG_ST, ZG_ST : self-test (unsupported in this driver)
|
|
1 -> activate self-test on X, Y, and/or Z gyros
|
|
FS_SEL[10] : full-scale range select
|
|
0 -> ± 250 deg/sec
|
|
1 -> ± 500 deg/sec
|
|
2 -> ± 1000 deg/sec
|
|
3 -> ± 2000 deg/sec
|
|
|
|
config MPU9250_ACCEL_AFS_SEL
|
|
int "MPU9250 Accelerometer AFS_SEL"
|
|
default 2
|
|
---help---
|
|
Sets the @afs_sel bit in ACCEL_CONFIG to the value provided. Per
|
|
the datasheet, the meaning of @afs_sel is as follows:
|
|
ACCEL_CONFIG(0x1c) : XA_ST YA_ST ZA_ST AFS_SEL1 AFS_SEL0 x x x
|
|
XA_ST, YA_ST, ZA_ST : self-test (unsupported in this driver)
|
|
1 -> activate self-test on X, Y, and/or Z accelerometers
|
|
AFS_SEL[10] : full-scale range select
|
|
0 -> ± 2 g
|
|
1 -> ± 4 g
|
|
2 -> ± 8 g
|
|
3 -> ± 16 g
|
|
|
|
endif # SENSORS_MPU9250
|
|
|
|
config SENSORS_MAX44009
|
|
bool "Maxim MAX44009 ALS sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enables MAX44009 Ambient Light Sensor
|
|
|
|
if SENSORS_MAX44009
|
|
|
|
config MAX44009_I2C_FREQUENCY
|
|
int "MAX44009 I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
|
|
config DEBUG_MAX44009
|
|
bool "Enable debug support for the MAX44009"
|
|
default n
|
|
---help---
|
|
Enables debug support for the MAX44009
|
|
|
|
config MAX44009_NPOLLWAITERS
|
|
int "Number of waiters to poll"
|
|
default 1
|
|
---help---
|
|
Number of waiters to poll
|
|
|
|
endif # SENSORS_MAX44009
|
|
|
|
config SENSORS_MAX31855
|
|
bool "Maxim MAX31855 Driver"
|
|
default n
|
|
select SPI
|
|
---help---
|
|
Enables support for the MAX31855 driver
|
|
|
|
config SENSORS_MAX6675
|
|
bool "Maxim MAX6675 Driver"
|
|
default n
|
|
select SPI
|
|
---help---
|
|
Enables support for the MAX6675 driver
|
|
|
|
config SENSORS_LIS3MDL
|
|
bool "STMicro LIS3MDL 3-Axis magnetometer support"
|
|
default n
|
|
select SPI
|
|
---help---
|
|
Enable driver support for the STMicro LIS3MDL 3-axis magnetometer.
|
|
|
|
config LM75_I2C
|
|
bool
|
|
default y if LM75
|
|
|
|
config SENSORS_LM75
|
|
bool "STMicro LM-75 Temperature Sensor support"
|
|
default n
|
|
select I2C
|
|
select LM75_I2C
|
|
---help---
|
|
Enable driver support for the STMicro LM-75 temperature sensor.
|
|
This should also work with compatible temperature sensors such as
|
|
the TI TMP100/101.
|
|
|
|
config LM75_I2C_FREQUENCY
|
|
int "LM75 I2C frequency"
|
|
default 100000
|
|
range 1 100000
|
|
depends on LM75_I2C
|
|
|
|
config SENSORS_LM92
|
|
bool "TI LM92 Temperature Sensor support"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the TI LM92 Temperature Sensor.
|
|
|
|
config LM92_I2C_FREQUENCY
|
|
int "LM92 I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
depends on LM92
|
|
|
|
config SENSORS_SCD30
|
|
bool "Sensirion SCD30 CO2, humidity and temperature sensor"
|
|
default n
|
|
---help---
|
|
Enable driver support for the Sensirion SCD30 CO₂, humidity and
|
|
temperature sensor.
|
|
|
|
if SENSORS_SCD30
|
|
|
|
config SCD30_I2C
|
|
bool "Sensirion SCD30 I2C mode"
|
|
default y
|
|
select I2C
|
|
|
|
config SCD30_I2C_FREQUENCY
|
|
int "SCD30 I2C frequency"
|
|
default 100000
|
|
range 1 100000
|
|
depends on SCD30_I2C
|
|
---help---
|
|
I2C frequency for SCD30. Note, maximum supported frequency for
|
|
this sensor is 100kHz.
|
|
|
|
config SCD30_DEBUG
|
|
bool "Debug support for the SCD30"
|
|
default n
|
|
---help---
|
|
Enables debug features for the SCD30
|
|
|
|
endif # SENSORS_SCD30
|
|
|
|
config SENSORS_SCD41
|
|
bool "Sensirion SCD41 CO2, humidity and temperature sensor"
|
|
default n
|
|
---help---
|
|
Enable driver support for the Sensirion SCD41 CO₂, humidity and
|
|
temperature sensor.
|
|
|
|
if SENSORS_SCD41
|
|
|
|
config SCD41_I2C
|
|
bool "Sensirion SCD41 I2C mode"
|
|
default y
|
|
select I2C
|
|
|
|
config SCD41_I2C_FREQUENCY
|
|
int "SCD41 I2C frequency"
|
|
default 100000
|
|
range 1 100000
|
|
depends on SCD41_I2C
|
|
---help---
|
|
I2C frequency for SCD41. Note, maximum supported frequency for
|
|
this sensor is 100kHz.
|
|
|
|
config SCD41_DEBUG
|
|
bool "Debug support for the SCD41"
|
|
default n
|
|
---help---
|
|
Enables debug features for the SCD41
|
|
|
|
endif # SENSORS_SCD41
|
|
|
|
config SENSORS_SGP30
|
|
bool "Sensirion SGP30 Gas Platform sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Sensirion SCD30 CO₂ and TVOC gas sensor.
|
|
|
|
if SENSORS_SGP30
|
|
|
|
config SGP30_I2C_FREQUENCY
|
|
int "SGP30 I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
|
|
config SGP30_DEBUG
|
|
bool "Debug support for the SGP30"
|
|
default n
|
|
---help---
|
|
Enables debug features for the SGP30
|
|
|
|
endif # SENSORS_SGP30
|
|
|
|
config SENSORS_AHT10
|
|
bool "ASAIR AHT10 temperature and humidity sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the ASAIR AHT10 temperature and humidity sensors.
|
|
|
|
if SENSORS_AHT10
|
|
config AHT10_I2C_FREQUENCY
|
|
int "AHT10 I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
endif # SENSORS_AHT10
|
|
|
|
config SENSORS_SHT21
|
|
bool "Sensirion SHT21 temperature and humidity sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Sensirion SHT20 and SHT21 temperature
|
|
and humidity sensors. SHT20 is a budget model with limited humidity
|
|
precision.
|
|
|
|
if SENSORS_SHT21
|
|
|
|
config SHT21_I2C_FREQUENCY
|
|
int "SHT21 I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
|
|
config SHT21_DEBUG
|
|
bool "Debug support for the SHT21"
|
|
default n
|
|
---help---
|
|
Enables debug features for the SHT21
|
|
|
|
endif # SENSORS_SHT21
|
|
|
|
config SENSORS_SHT3X
|
|
bool "Sensirion SHT3x temperature and humidity sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Sensirion SHT3x temperature
|
|
and humidity sensors.
|
|
|
|
if SENSORS_SHT3X
|
|
|
|
config SHT3X_I2C_FREQUENCY
|
|
int "SHT3x I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
|
|
config SHT3X_I2C_ADDR
|
|
hex "SHT3x I2C addr"
|
|
default 0x44
|
|
range 0x44 0x45
|
|
|
|
config SHT3X_DEBUG
|
|
bool "Debug support for the SHT3x"
|
|
default n
|
|
---help---
|
|
Enables debug features for the SHT3x
|
|
|
|
endif # SENSORS_SHT3X
|
|
|
|
config SENSORS_SPS30
|
|
bool "Sensirion SPS30 particulate matter sensor"
|
|
default n
|
|
---help---
|
|
Enable driver support for the Sensirion SPS30 particulate matter sensor
|
|
sensor.
|
|
|
|
if SENSORS_SPS30
|
|
|
|
config SPS30_I2C
|
|
bool "Sensirion SPS30 I2C mode"
|
|
default y
|
|
select I2C
|
|
|
|
config SPS30_I2C_FREQUENCY
|
|
int "SPS30 I2C frequency"
|
|
default 100000
|
|
range 1 100000
|
|
depends on SPS30_I2C
|
|
---help---
|
|
I2C frequency for SPS30. Note, maximum supported frequency for
|
|
this sensor is 100kHz.
|
|
|
|
config SPS30_DEBUG
|
|
bool "Debug support for the SPS30"
|
|
default n
|
|
---help---
|
|
Enables debug features for the SPS30
|
|
|
|
endif # SENSORS_SPS30
|
|
|
|
config SENSORS_T67XX
|
|
bool "Telair T6713 carbon dioxide sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Telair T6713 and T6703 carbon
|
|
dioxide sensors.
|
|
|
|
config SENSORS_QENCODER
|
|
bool "Qencoder"
|
|
default n
|
|
|
|
config SENSORS_HALL3PHASE
|
|
bool "3-phase Hall effect sensor"
|
|
default n
|
|
|
|
config SENSORS_VEML6070
|
|
bool "Vishay VEML6070 UV-A Light Sensor support"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the Vishay VEML6070 UV-A light sensor.
|
|
|
|
config VEML6070_I2C_FREQUENCY
|
|
int "VEML6070 I2C frequency"
|
|
default 100000
|
|
depends on SENSORS_VEML6070
|
|
|
|
config SENSORS_VL53L1X
|
|
bool "ST VL53L1X TOF sensor"
|
|
default n
|
|
select I2C
|
|
depends on ALLOW_BSD_COMPONENTS
|
|
---help---
|
|
Enable driver support for the VL53L1X Time Of Flight sensor.
|
|
|
|
config SENSORS_XEN1210
|
|
bool "Sensixs XEN1210 Magnetometer"
|
|
default n
|
|
select SPI
|
|
---help---
|
|
Enable driver support for the Sensixs XEN1210 Magnetometer.
|
|
|
|
config XEN1210_REGDEBUG
|
|
bool "Debug support for the XEN1210"
|
|
default n
|
|
depends on SENSORS_XEN1210
|
|
---help---
|
|
Enables register level debug features for the XEN1210
|
|
|
|
config SENSORS_ZEROCROSS
|
|
bool "Zero Cross Sensor"
|
|
default n
|
|
|
|
config SENSORS_ADT7320
|
|
bool "Analog Devices ADT7320 Driver"
|
|
default n
|
|
select SPI
|
|
---help---
|
|
Enables support for the ADT7320 Driver
|
|
|
|
config SENSORS_HDC1008
|
|
bool "TI HDC1008 temperature and humidity sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the TI HDC1008 temperature and humidity sensor.
|
|
|
|
if SENSORS_HDC1008
|
|
|
|
config HDC1008_I2C_ADDRESS
|
|
hex "HDC1008 I2C address"
|
|
default 0x40
|
|
range 0x40 0x43
|
|
---help---
|
|
The I2C address of the HDC1008 sensor. It can be configured via straps to
|
|
a value between 0x40 and 0x43.
|
|
|
|
config HDC1008_I2C_FREQUENCY
|
|
int "HDC1008 I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
|
|
config HDC1008_DEBUG
|
|
bool "Debug support for the HDC1008"
|
|
default n
|
|
---help---
|
|
Enables debug features for the HDC1008
|
|
|
|
endif # SENSORS_HDC1008
|
|
|
|
config SENSORS_LTR308
|
|
bool "LTR308 Lite-On ambient light sensor"
|
|
default n
|
|
select I2C
|
|
---help---
|
|
Enable driver support for the LTR308 Lite-on ambient light sensor.
|
|
|
|
if SENSORS_LTR308
|
|
|
|
config SENSORS_LTR308_I2C_FREQUENCY
|
|
int "LTR308 I2C frequency"
|
|
default 400000
|
|
range 1 400000
|
|
|
|
config SENSORS_LTR308_POLL_INTERVAL
|
|
int "Polling interval in microseconds, default 1 sec"
|
|
depends on SENSORS_LTR308
|
|
default 1000000
|
|
range 0 4294967295
|
|
---help---
|
|
The interval until a new sensor measurement will be triggered.
|
|
|
|
config SENSORS_LTR308_THREAD_STACKSIZE
|
|
int "Worker thread stack size"
|
|
depends on SENSORS_LTR308
|
|
default 1024
|
|
---help---
|
|
The stack size for the worker thread.
|
|
|
|
endif # SENSORS_LTR308
|
|
|
|
endif # SENSORS
|