Kconfig 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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_SENSORS_DRIVERS
  82. select PKG_USING_MPU6XXX
  83. select PKG_USING_MPU6XXX_LATEST_VERSION
  84. select PKG_USING_MPU6XXX_ACCE
  85. select PKG_USING_MPU6XXX_GYRO
  86. select BSP_USING_I2C2
  87. default n
  88. config BOARD_USING_LCD_ILI9341
  89. bool "LCD ILI9341(over ebi0)"
  90. select RT_USING_TOUCH
  91. select BSP_USING_EADC
  92. select BSP_USING_EADC0
  93. select NU_PKG_USING_ADC_TOUCH
  94. select NU_PKG_USING_ADC_TOUCH_SW
  95. select NU_PKG_USING_ILI9341
  96. select NU_PKG_USING_ILI9341_EBI
  97. select NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER
  98. select NU_PKG_ILI9341_HORIZONTAL
  99. default n
  100. if BOARD_USING_LCD_ILI9341
  101. config BOARD_USING_ILI9341_EBI_PORT
  102. int "Specify EBI port index"
  103. range 0 2
  104. default 0
  105. config BOARD_USING_ILI9341_PIN_BACKLIGHT
  106. int "Specify the pin index of backlight pin index"
  107. range 0 127
  108. default 23
  109. config BOARD_USING_ILI9341_PIN_RESET
  110. int "Specify the pin index of reset pin index"
  111. range 0 127
  112. default 22
  113. config BOARD_USING_ILI9341_PIN_DC
  114. int "Specify the pin index of data&command switching"
  115. range 0 127
  116. default 115
  117. endif
  118. config BOARD_USING_AT24LC64
  119. bool "AT24LC64 EEPROM(over i2c2)"
  120. select BSP_USING_I2C
  121. select BSP_USING_I2C2
  122. select PKG_USING_AT24CXX
  123. default n
  124. config BOARD_USING_SRAM0_AS_MEMHEAP
  125. bool "EBI SRAM supporting(over ebi1)"
  126. select BSP_USING_EBI
  127. select RT_USING_MEMHEAP
  128. select RT_USING_MEMHEAP_AS_HEAP
  129. default n
  130. if BOARD_USING_SRAM0_AS_MEMHEAP
  131. config NU_EBI_SRAM0_SIZE
  132. hex "SRAM capacity(In byte)"
  133. range 0x200 0x100000
  134. default 0x80000
  135. depends on BSP_USING_EBI_BANK0
  136. endif
  137. config BOARD_USING_BUZZER
  138. bool "BUZZER.(over bpwm0_ch5)"
  139. select BSP_USING_BPWM
  140. select BSP_USING_BPWM0
  141. default n
  142. endif
  143. endmenu
  144. source "$BSP_DIR/../libraries/nu_packages/Kconfig"
  145. endmenu