Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. menu "Hardware Drivers Config"
  2. menu "On-chip Peripheral Drivers"
  3. source "$BSP_DIR/../libraries/m460/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_RTL8201FI
  12. bool "Enable Ethernet phy supporting(over emac/mdio)"
  13. select BSP_USING_EMAC
  14. default n
  15. config BOARD_USING_ESP8266
  16. bool "ESP8266 Wi-Fi module supporting(over uart2)"
  17. select BSP_USING_UART
  18. select BSP_USING_UART2
  19. select BSP_USING_UART2_RX_DMA
  20. select BSP_USING_UART2_TX_DMA
  21. select PKG_USING_AT_DEVICE
  22. select AT_DEVICE_USING_ESP8266
  23. select AT_DEVICE_ESP8266_INIT_ASYN
  24. default y
  25. config BOARD_USING_STORAGE_SDCARD
  26. bool "SDCARD supporting(over sdh0)"
  27. select BSP_USING_SDH
  28. select BSP_USING_SDH0
  29. default y
  30. config BOARD_USING_STORAGE_SPIFLASH
  31. bool "SPIFLASH supporting(over qspi0)"
  32. select BSP_USING_QSPI
  33. select BSP_USING_QSPI0
  34. default y
  35. config BOARD_USING_CANFD0
  36. bool "CAN-FD supporting(over canfd0)"
  37. select BSP_USING_CANFD
  38. select BSP_USING_CANFD0
  39. default y
  40. config BOARD_USING_NCT7717U
  41. bool "Thermal Sensor(over i2c2)"
  42. select NU_PKG_USING_NCT7717U
  43. select BSP_USING_I2C
  44. select BSP_USING_I2C2
  45. default y
  46. config BOARD_USING_MPU6500
  47. bool "MPU6500 6-axis MotionTracking Sensor(over i2c2)"
  48. select PKG_USING_MPU6XXX
  49. select PKG_USING_MPU6XXX_LATEST_VERSION
  50. select PKG_USING_MPU6XXX_ACCE
  51. select BSP_USING_I2C
  52. select BSP_USING_I2C2
  53. default y
  54. config BOARD_USING_USB_D_H
  55. bool "Enable USB Device or Host function"
  56. help
  57. Choose this option if you need USB function.
  58. if BOARD_USING_USB_D_H
  59. choice
  60. prompt "Select FS/HS USB Ports"
  61. config BOARD_USING_HSUSBD
  62. select BSP_USING_HSUSBD
  63. bool "Enable HSUSBD(over USB2.0)"
  64. help
  65. Choose this option if you need HSUSBD function mode.
  66. config BOARD_USING_HSUSBD_USBH
  67. select BSP_USING_USBH
  68. select BSP_USING_HSUSBD
  69. bool "Enable HSUSBD(over USB2.0) and USBH(over USB1.1)"
  70. help
  71. Choose this option if you need HSUSBD and USBH function mode at the same time.
  72. config BOARD_USING_HSUSBH
  73. select BSP_USING_HSUSBH
  74. bool "Enable HSUSBH(over USB2.0)"
  75. help
  76. Choose this option if you need HSUSBH function mode.
  77. config BOARD_USING_HSUSBH_USBD
  78. select BSP_USING_HSUSBH
  79. select BSP_USING_USBD
  80. bool "Enable HSUSBH(over USB2.0) and USBD(over USB1.1)"
  81. help
  82. Choose this option if you need HSUSBH and USBD function mode at the same time.
  83. config BOARD_USING_HSOTG
  84. select BSP_USING_HSOTG
  85. bool "Enable HSOTG(over USB2.0)"
  86. help
  87. Choose this option if you need HSOTG function mode.
  88. endchoice
  89. endif
  90. endmenu
  91. menu "Board extended module drivers"
  92. config BOARD_USING_LCD_ILI9341
  93. bool "LCD ILI9341 (over spi2)"
  94. select RT_USING_TOUCH
  95. select BSP_USING_SPI2
  96. select BSP_USING_EADC
  97. select BSP_USING_EADC0
  98. select NU_PKG_USING_ADC_TOUCH
  99. select NU_PKG_USING_ADC_TOUCH_SW
  100. select NU_PKG_USING_ILI9341
  101. select NU_PKG_USING_ILI9341_SPI
  102. select NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER
  103. select NU_PKG_ILI9341_HORIZONTAL
  104. default n
  105. if BOARD_USING_LCD_ILI9341
  106. config BOARD_USING_ILI9341_PIN_BACKLIGHT
  107. int "Specify the pin index of backlight pin index"
  108. range 0 127
  109. default 21
  110. config BOARD_USING_ILI9341_PIN_RESET
  111. int "Specify the pin index of reset pin index"
  112. range 0 127
  113. default 19
  114. config BOARD_USING_ILI9341_PIN_DC
  115. int "Specify the pin index of data&command switching"
  116. range 0 127
  117. default 18
  118. endif
  119. endmenu
  120. source "$BSP_DIR/../libraries/nu_packages/Kconfig"
  121. endmenu