Kconfig 904 B

12345678910111213141516171819202122232425
  1. config RT_USING_SENSOR
  2. bool "Using Sensor device drivers"
  3. select RT_USING_PIN
  4. default n
  5. help
  6. Enable the sensor framework so accelerometers, gyros, temperature sensors,
  7. etc. can register unified data channels. Depends on GPIO for interrupt
  8. pins. Disable if no sensors are present.
  9. if RT_USING_SENSOR
  10. config RT_USING_SENSOR_V2
  11. bool "Enable Sensor Framework v2"
  12. default n
  13. help
  14. Opt in to the redesigned sensor framework (v2) that updates the device
  15. APIs and CLI tools. Only enable if your BSP/drivers support it.
  16. config RT_USING_SENSOR_CMD
  17. bool "Using Sensor cmd"
  18. select RT_KLIBC_USING_VSNPRINTF_STANDARD if RT_USING_SENSOR_V2
  19. default y
  20. help
  21. Build the shell command helpers for listing and testing sensors. Useful
  22. during bring-up; disable to save a bit of code.
  23. endif