Kconfig 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # ST Microelectronics LPS22HH pressure and temperature sensor
  2. # Copyright (c) 2019 STMicroelectronics
  3. # SPDX-License-Identifier: Apache-2.0
  4. menuconfig LPS22HH
  5. bool "LPS22HH pressure and temperature"
  6. depends on I2C || SPI
  7. select HAS_STMEMSC
  8. select USE_STDC_LPS22HH
  9. help
  10. Enable driver for LPS22HH I2C-based pressure and temperature
  11. sensor.
  12. if LPS22HH
  13. choice LPS22HH_TRIGGER_MODE
  14. prompt "Trigger mode"
  15. default LPS22HH_TRIGGER_GLOBAL_THREAD
  16. help
  17. Specify the type of triggering to be used by the driver.
  18. config LPS22HH_TRIGGER_NONE
  19. bool "No trigger"
  20. config LPS22HH_TRIGGER_GLOBAL_THREAD
  21. bool "Use global thread"
  22. depends on GPIO
  23. select LPS22HH_TRIGGER
  24. config LPS22HH_TRIGGER_OWN_THREAD
  25. bool "Use own thread"
  26. depends on GPIO
  27. select LPS22HH_TRIGGER
  28. endchoice # LPS22HH_TRIGGER_MODE
  29. config LPS22HH_TRIGGER
  30. bool
  31. config LPS22HH_THREAD_PRIORITY
  32. int "Thread priority"
  33. depends on LPS22HH_TRIGGER_OWN_THREAD
  34. default 10
  35. help
  36. Priority of thread used by the driver to handle interrupts.
  37. config LPS22HH_THREAD_STACK_SIZE
  38. int "Thread stack size"
  39. depends on LPS22HH_TRIGGER_OWN_THREAD
  40. default 1024
  41. help
  42. Stack size of thread used by the driver to handle interrupts.
  43. menu "Attributes"
  44. config LPS22HH_SAMPLING_RATE
  45. int "Output data rate"
  46. range 0 7
  47. default 0
  48. help
  49. Sensor output data rate expressed in samples per second.
  50. Data rates supported by the chip are:
  51. 0: ODR selected at runtime
  52. 1: 1Hz
  53. 2: 10Hz
  54. 3: 25Hz
  55. 4: 50Hz
  56. 5: 75Hz
  57. 6: 100Hz
  58. 7: 200Hz
  59. endmenu
  60. endif # LPS22HH