Kconfig 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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_NAU88L25
  16. bool "NAU88L25 Audio Codec supporting(over i2s, i2c2)"
  17. select NU_PKG_USING_NAU88L25
  18. select BSP_USING_I2C2
  19. select BSP_USING_I2S
  20. select BSP_USING_I2S0
  21. default n
  22. config BOARD_USING_STORAGE_SDCARD
  23. bool "SDCARD supporting(over sdh0)"
  24. select BSP_USING_SDH
  25. select BSP_USING_SDH0
  26. default n
  27. config BOARD_USING_STORAGE_SPIFLASH
  28. bool "SPIFLASH supporting(over qspi0)"
  29. select BSP_USING_QSPI
  30. select BSP_USING_QSPI0
  31. default y
  32. config BOARD_USING_USB_D_H
  33. bool "Enable USB Device or Host function"
  34. help
  35. Choose this option if you need USB function.
  36. if BOARD_USING_USB_D_H
  37. choice
  38. prompt "Select FS/HS USB Ports"
  39. config BOARD_USING_HSUSBD
  40. select BSP_USING_HSUSBD
  41. bool "Enable HSUSBD(over USB2.0)"
  42. help
  43. Choose this option if you need HSUSBD function mode.
  44. config BOARD_USING_HSUSBD_USBH
  45. select BSP_USING_USBH
  46. select BSP_USING_HSUSBD
  47. bool "Enable HSUSBD(over USB2.0) and USBH(over USB1.1)"
  48. help
  49. Choose this option if you need HSUSBD and USBH function mode at the same time.
  50. config BOARD_USING_HSUSBH
  51. select BSP_USING_HSUSBH
  52. bool "Enable HSUSBH(over USB2.0)"
  53. help
  54. Choose this option if you need HSUSBH function mode.
  55. config BOARD_USING_HSUSBH_USBD
  56. select BSP_USING_HSUSBH
  57. select BSP_USING_USBD
  58. bool "Enable HSUSBH(over USB2.0) and USBD(over USB1.1)"
  59. help
  60. Choose this option if you need HSUSBH and USBD function mode at the same time.
  61. config BOARD_USING_HSOTG
  62. select BSP_USING_HSOTG
  63. bool "Enable HSOTG(over USB2.0)"
  64. help
  65. Choose this option if you need HSOTG function mode.
  66. endchoice
  67. endif
  68. endmenu
  69. menu "Board extended module drivers"
  70. config BOARD_USING_ADVANCE_V4
  71. bool "Use BOARD_USING_ADVANCE_V4 board"
  72. default n
  73. if BOARD_USING_ADVANCE_V4
  74. config BOARD_USING_MAX31875
  75. bool "MAX31875 Temperature sensor(over i2c1)"
  76. select NU_PKG_USING_MAX31875
  77. select BSP_USING_I2C1
  78. default n
  79. config BOARD_USING_MPU6500
  80. bool "MPU6500 6-axis sensor(over i2c2)"
  81. select PKG_USING_MPU6XXX
  82. select PKG_USING_MPU6XXX_LATEST_VERSION
  83. select PKG_USING_MPU6XXX_ACCE
  84. select PKG_USING_MPU6XXX_GYRO
  85. select BSP_USING_I2C2
  86. default n
  87. config BOARD_USING_LCD_ILI9341
  88. bool "LCD ILI9341(over ebi0)"
  89. select RT_USING_TOUCH
  90. select BSP_USING_EADC
  91. select BSP_USING_EADC0
  92. select NU_PKG_USING_ADC_TOUCH
  93. select NU_PKG_USING_ADC_TOUCH_SW
  94. select NU_PKG_USING_ILI9341
  95. select NU_PKG_USING_ILI9341_EBI
  96. select NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER
  97. select NU_PKG_ILI9341_HORIZONTAL
  98. default n
  99. if BOARD_USING_LCD_ILI9341
  100. config BOARD_USING_ILI9341_EBI_PORT
  101. int "Specify EBI port index"
  102. range 0 2
  103. default 0
  104. config BOARD_USING_ILI9341_PIN_BACKLIGHT
  105. int "Specify the pin index of backlight pin index"
  106. range 0 127
  107. default 23
  108. config BOARD_USING_ILI9341_PIN_RESET
  109. int "Specify the pin index of reset pin index"
  110. range 0 127
  111. default 22
  112. config BOARD_USING_ILI9341_PIN_DC
  113. int "Specify the pin index of data&command switching"
  114. range 0 127
  115. default 115
  116. endif
  117. config BOARD_USING_AT24LC64
  118. bool "AT24LC64 EEPROM(over i2c2)"
  119. select BSP_USING_I2C
  120. select BSP_USING_I2C2
  121. select PKG_USING_AT24CXX
  122. default n
  123. config BOARD_USING_SRAM0_AS_MEMHEAP
  124. bool "EBI SRAM supporting(over ebi1)"
  125. select BSP_USING_EBI
  126. select RT_USING_MEMHEAP
  127. select RT_USING_MEMHEAP_AS_HEAP
  128. default n
  129. if BOARD_USING_SRAM0_AS_MEMHEAP
  130. config NU_EBI_SRAM0_SIZE
  131. hex "SRAM capacity(In byte)"
  132. range 0x200 0x100000
  133. default 0x80000
  134. depends on BSP_USING_EBI_BANK0
  135. endif
  136. config BOARD_USING_BUZZER
  137. bool "BUZZER.(over bpwm0_ch5)"
  138. select BSP_USING_BPWM
  139. select BSP_USING_BPWM0
  140. default n
  141. endif
  142. endmenu
  143. source "$(BSP_DIR)/../libraries/nu_packages/Kconfig"
  144. endmenu