Kconfig 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. menuconfig RT_USING_ADC
  2. bool "Using ADC device drivers"
  3. default n
  4. help
  5. Enable analog-to-digital converter framework support so MCU ADC channels
  6. can be exposed through the RT-Thread device interface. Required when your
  7. application samples voltages or sensors via ADC.
  8. if RT_USING_DM && RT_USING_ADC
  9. osource "$(SOC_DM_ADC_DIR)/Kconfig"
  10. endif
  11. config RT_USING_DAC
  12. bool "Using DAC device drivers"
  13. default n
  14. help
  15. Build the digital-to-analog converter driver layer. Enable if you need to
  16. output analog voltages or audio waveforms through DAC peripherals.
  17. config RT_USING_NULL
  18. bool "Using NULL device drivers"
  19. default n
  20. help
  21. Register a `/dev/null` style sink device that discards written data and
  22. always returns EOF when read. Handy for tests or redirecting logs.
  23. config RT_USING_ZERO
  24. bool "Using ZERO device drivers"
  25. default n
  26. help
  27. Provide a `/dev/zero` like device that returns zero-filled buffers on
  28. reads. Useful for quick buffer initialization without touching memory.
  29. config RT_USING_RANDOM
  30. bool "Using RANDOM device drivers"
  31. default n
  32. help
  33. Expose a `/dev/random` source backed by software entropy or hardware RNG.
  34. Enable only when you supply a randomness provider.
  35. menuconfig RT_USING_PWM
  36. bool "Using PWM device drivers"
  37. default n
  38. help
  39. Enable the Pulse-Width Modulation driver layer so timers configured as PWM
  40. can control motors, LEDs, etc. Required by many BSPs with PWM outputs.
  41. if RT_USING_DM && RT_USING_PWM
  42. osource "$(SOC_DM_PWM_DIR)/Kconfig"
  43. endif
  44. config RT_USING_PULSE_ENCODER
  45. bool "Using PULSE ENCODER device drivers"
  46. default n
  47. help
  48. Build the pulse encoder (quadrature decoder) driver so incremental
  49. encoders can be read through the RT-Thread device API.
  50. config RT_USING_INPUT_CAPTURE
  51. bool "Using INPUT CAPTURE device drivers"
  52. default n
  53. help
  54. Enable input capture support, letting timers timestamp external pulses for
  55. frequency/period measurements.
  56. if RT_USING_INPUT_CAPTURE
  57. config RT_INPUT_CAPTURE_RB_SIZE
  58. int "Set input capture ringbuffer size"
  59. default 100
  60. help
  61. Number of samples buffered per capture channel. Increase to avoid data
  62. loss when interrupts arrive faster than the consumer drains them.
  63. endif