Kconfig 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. menu "Hardware Drivers Config"
  2. menu "On-chip Peripheral Drivers"
  3. source "$BSP_DIR/../libraries/nuc980/rtt_port/Kconfig"
  4. endmenu
  5. menu "On-board Peripheral Drivers"
  6. config BSP_USING_CONSOLE
  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_NAU8822
  16. bool "NAU8822 Audio Codec supporting(over i2s, i2c0)"
  17. select NU_PKG_USING_NAU8822
  18. select BSP_USING_I2C0
  19. select BSP_USING_I2S
  20. select BSP_USING_I2S0
  21. default n
  22. config BOARD_USING_STORAGE_SDCARD
  23. bool "SDCARD supporting(over sdh1)"
  24. select BSP_USING_SDH
  25. select BSP_USING_SDH1
  26. default y
  27. config BOARD_USING_STORAGE_SPIFLASH
  28. bool "SPI NOR FLASH supporting(over qspi0)"
  29. select BSP_USING_QSPI
  30. select BSP_USING_QSPI0
  31. default n
  32. config BOARD_USING_STORAGE_SPINAND
  33. bool "SPI NAND FLASH supporting(over qspi0)"
  34. select BSP_USING_QSPI
  35. select BSP_USING_QSPI0
  36. select NU_PKG_USING_SPINAND
  37. default y
  38. config BOARD_USING_USB0_DEVICE_HOST
  39. select BSP_USING_USBH
  40. select BSP_USING_USBD
  41. bool "Enable USB0 Device/Host"
  42. help
  43. Choose this option if you need USB device or host function mode.
  44. If you need USB host, please remember short to ground on JP1 jumper.
  45. config BOARD_USING_USB1_HOST
  46. select BSP_USING_USBH
  47. bool "Enable USB1 Host"
  48. help
  49. Choose this option if you need USB1 HOST.
  50. endmenu
  51. menu "Board extended module drivers"
  52. config BOARD_USING_MAX31875
  53. bool "MAX31875 Temperature sensor(over i2c1)"
  54. select NU_PKG_USING_MAX31875
  55. select BSP_USING_I2C1
  56. default n
  57. config BOARD_USING_LCD_ILI9341
  58. bool "LCD ILI9341 (over spi0)"
  59. select RT_USING_TOUCH
  60. select BSP_USING_ADC_TOUCH
  61. select NU_PKG_USING_ADC_TOUCH
  62. select NU_PKG_USING_ILI9341
  63. select NU_PKG_USING_ILI9341_SPI
  64. select NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER
  65. select NU_PKG_ILI9341_HORIZONTAL
  66. select BSP_USING_SPI0
  67. default n
  68. if BOARD_USING_LCD_ILI9341
  69. config BOARD_USING_ILI9341_PIN_BACKLIGHT
  70. int "Specify the pin index of backlight pin index"
  71. range 0 127
  72. default 103
  73. config BOARD_USING_ILI9341_PIN_RESET
  74. int "Specify the pin index of reset pin index"
  75. range 0 127
  76. default 90
  77. config BOARD_USING_ILI9341_PIN_DC
  78. int "Specify the pin index of data&command switching"
  79. range 0 127
  80. default 89
  81. endif
  82. config BOARD_USING_ESP8266
  83. bool "ESP8266 Wi-Fi module supporting(over uart1)"
  84. select BSP_USING_UART
  85. select BSP_USING_UART1
  86. select BSP_USING_UART1_RX_DMA
  87. select BSP_USING_UART1_TX_DMA
  88. select PKG_USING_AT_DEVICE
  89. select AT_DEVICE_USING_ESP8266
  90. select AT_DEVICE_ESP8266_INIT_ASYN
  91. default n
  92. endmenu
  93. source "$BSP_DIR/../libraries/nu_packages/Kconfig"
  94. endmenu