Kconfig 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. menu "Hardware Drivers Config"
  2. menu "On-chip Peripheral Drivers"
  3. source "$BSP_DIR/../libraries/m2354/rtt_port/Kconfig"
  4. endmenu
  5. menu "On-board Peripheral Drivers"
  6. config BSP_USING_NULINKME
  7. bool "Enable UART0 for RTT Console.(uart0)"
  8. select BSP_USING_UART
  9. select BSP_USING_UART0
  10. default y
  11. config BOARD_USING_ESP8266
  12. bool "ESP8266 Wi-Fi module supporting(over uart4)"
  13. select BSP_USING_UART
  14. select BSP_USING_UART4
  15. select BSP_USING_UART4_RX_DMA
  16. select BSP_USING_UART4_TX_DMA
  17. select PKG_USING_AT_DEVICE
  18. select AT_DEVICE_USING_ESP8266
  19. select AT_DEVICE_ESP8266_INIT_ASYN
  20. default n
  21. config BOARD_USING_STORAGE_SDCARD
  22. bool "SDCARD supporting.(over sdh0)"
  23. select BSP_USING_SDH
  24. select BSP_USING_SDH0
  25. default n
  26. choice
  27. prompt "Select FS USB Ports"
  28. config BOARD_USING_USBD
  29. select BSP_USING_USBD
  30. bool "Enable USBD(over USB1.1)"
  31. help
  32. Choose this option if you need USBD function mode.
  33. config BOARD_USING_USBH
  34. select BSP_USING_USBH
  35. bool "Enable USBH(over USB1.1)"
  36. help
  37. Choose this option if you need USBH function mode.
  38. config BOARD_USING_OTG
  39. select BSP_USING_OTG
  40. bool "Enable OTG(over USB1.1)"
  41. help
  42. Choose this option if you need OTG function mode.
  43. config BOARD_USING_USB_NONE
  44. select BSP_USING_USB_NONE
  45. bool "Disable USB1.1 port"
  46. help
  47. Choose this option if you need not USB function.
  48. endchoice
  49. endmenu
  50. menu "Board extended module drivers"
  51. config BOARD_USING_LCD_ILI9341
  52. bool "LCD ILI9341 (over spi1)"
  53. select RT_USING_TOUCH
  54. select BSP_USING_SPI1
  55. select BSP_USING_EADC
  56. select BSP_USING_EADC0
  57. select NU_PKG_USING_ADC_TOUCH
  58. select NU_PKG_USING_ADC_TOUCH_SW
  59. select NU_PKG_USING_ILI9341
  60. select NU_PKG_USING_ILI9341_SPI
  61. select NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER
  62. select NU_PKG_ILI9341_HORIZONTAL
  63. default n
  64. if BOARD_USING_LCD_ILI9341
  65. config BOARD_USING_ILI9341_PIN_BACKLIGHT
  66. int "Specify the pin index of backlight pin index"
  67. range 0 127
  68. default 43
  69. config BOARD_USING_ILI9341_PIN_RESET
  70. int "Specify the pin index of reset pin index"
  71. range 0 127
  72. default 9
  73. config BOARD_USING_ILI9341_PIN_DC
  74. int "Specify the pin index of data&command switching"
  75. range 0 127
  76. default 8
  77. endif
  78. config BOARD_USING_SEGMENT_LCD
  79. bool "Segment LCD supporting.(over lcd)"
  80. select BSP_USING_SLCD
  81. default n
  82. endmenu
  83. source "$BSP_DIR/../libraries/nu_packages/Kconfig"
  84. endmenu