Kconfig 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. menu "Hardware Drivers Config"
  2. menu "On-chip Peripheral Drivers"
  3. source "$BSP_DIR/../libraries/m480/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_IP101GR
  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 uart1)"
  17. select BSP_USING_UART
  18. select BSP_USING_UART1
  19. select BSP_USING_UART1_RX_DMA
  20. select BSP_USING_UART1_TX_DMA
  21. select PKG_USING_AT_DEVICE
  22. select AT_DEVICE_USING_ESP8266
  23. select AT_DEVICE_ESP8266_INIT_ASYN
  24. default n
  25. config BOARD_USING_BMX055
  26. bool "BMX055 9-axis sensor(over i2c2)"
  27. select NU_PKG_USING_BMX055
  28. select BSP_USING_I2C2
  29. default n
  30. config BOARD_USING_NAU88L25
  31. bool "NAU88L25 Audio Codec supporting(over i2s, i2c2)"
  32. select NU_PKG_USING_NAU88L25
  33. select BSP_USING_I2C2
  34. select BSP_USING_I2S
  35. select BSP_USING_I2S0
  36. default n
  37. config BOARD_USING_STORAGE_SDCARD
  38. bool "SDCARD supporting(over sdh0)"
  39. select BSP_USING_SDH
  40. select BSP_USING_SDH0
  41. default n
  42. config BOARD_USING_STORAGE_SPIFLASH
  43. bool "SPIFLASH supporting(over qspi0)"
  44. select BSP_USING_QSPI
  45. select BSP_USING_QSPI0
  46. default y
  47. config BOARD_USING_USB_D_H
  48. bool "Enable USB Device or Host function"
  49. help
  50. Choose this option if you need USB function.
  51. if BOARD_USING_USB_D_H
  52. choice
  53. prompt "Select FS/HS USB Ports"
  54. config BOARD_USING_HSUSBD
  55. select BSP_USING_HSUSBD
  56. bool "Enable HSUSBD(over USB2.0)"
  57. help
  58. Choose this option if you need HSUSBD function mode.
  59. config BOARD_USING_HSUSBD_USBH
  60. select BSP_USING_USBH
  61. select BSP_USING_HSUSBD
  62. bool "Enable HSUSBD(over USB2.0) and USBH(over USB1.1)"
  63. help
  64. Choose this option if you need HSUSBD and USBH function mode at the same time.
  65. config BOARD_USING_HSUSBH
  66. select BSP_USING_HSUSBH
  67. bool "Enable HSUSBH(over USB2.0)"
  68. help
  69. Choose this option if you need HSUSBH function mode.
  70. config BOARD_USING_HSUSBH_USBD
  71. select BSP_USING_HSUSBH
  72. select BSP_USING_USBD
  73. bool "Enable HSUSBH(over USB2.0) and USBD(over USB1.1)"
  74. help
  75. Choose this option if you need HSUSBH and USBD function mode at the same time.
  76. config BOARD_USING_HSOTG
  77. select BSP_USING_HSOTG
  78. bool "Enable HSOTG(over USB2.0)"
  79. help
  80. Choose this option if you need HSOTG function mode.
  81. endchoice
  82. endif
  83. endmenu
  84. menu "Board extended module drivers"
  85. config BOARD_USING_MAX31875
  86. bool "MAX31875 Temperature sensor(over i2c1)"
  87. select NU_PKG_USING_MAX31875
  88. select BSP_USING_I2C1
  89. default n
  90. config BOARD_USING_LCD_ILI9341
  91. bool "LCD ILI9341 (over spi2)"
  92. select RT_USING_TOUCH
  93. select BSP_USING_SPI2
  94. select BSP_USING_EADC
  95. select BSP_USING_EADC0
  96. select NU_PKG_USING_ADC_TOUCH
  97. select NU_PKG_USING_ADC_TOUCH_SW
  98. select NU_PKG_USING_ILI9341
  99. select NU_PKG_USING_ILI9341_SPI
  100. select NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER
  101. select NU_PKG_ILI9341_HORIZONTAL
  102. default n
  103. if BOARD_USING_LCD_ILI9341
  104. config BOARD_USING_ILI9341_PIN_BACKLIGHT
  105. int "Specify the pin index of backlight pin index"
  106. range 0 127
  107. default 69
  108. config BOARD_USING_ILI9341_PIN_RESET
  109. int "Specify the pin index of reset pin index"
  110. range 0 127
  111. default 19
  112. config BOARD_USING_ILI9341_PIN_DC
  113. int "Specify the pin index of data&command switching"
  114. range 0 127
  115. default 18
  116. endif
  117. endmenu
  118. source "$BSP_DIR/../libraries/nu_packages/Kconfig"
  119. endmenu