Kconfig 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_STLINK_TO_UART
  4. bool "Enable STLINK TO UART (lpuart1)"
  5. select BSP_USING_UART
  6. select BSP_USING_LPUART1
  7. default y
  8. endmenu
  9. menu "On-chip Peripheral Drivers"
  10. config BSP_USING_GPIO
  11. bool "Enable GPIO"
  12. select RT_USING_PIN
  13. default y
  14. config BSP_USING_ONCHIP_RTC
  15. bool "Enable RTC"
  16. default n
  17. menuconfig BSP_USING_UART
  18. bool "Enable UART"
  19. default y
  20. select RT_USING_SERIAL
  21. if BSP_USING_UART
  22. config BSP_STM32_UART_V1_TX_TIMEOUT
  23. int "UART TX timeout"
  24. default 2000
  25. depends on RT_USING_SERIAL_V1
  26. config BSP_USING_UART1
  27. bool "Enable UART1"
  28. default n
  29. config BSP_UART1_RX_USING_DMA
  30. bool "Enable UART1 RX DMA"
  31. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  32. default n
  33. config BSP_USING_UART2
  34. bool "Enable UART2"
  35. default n
  36. config BSP_UART2_RX_USING_DMA
  37. bool "Enable UART2 RX DMA"
  38. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  39. default n
  40. config BSP_USING_LPUART1
  41. bool "Enable LPUART1"
  42. default y
  43. config BSP_LPUART1_RX_USING_DMA
  44. bool "Enable LPUART1 RX DMA"
  45. depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA
  46. default n
  47. endif
  48. endmenu
  49. menu "Board extended module Drivers"
  50. endmenu
  51. endmenu