Kconfig 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. choice
  33. prompt "Select FS/HS USB Ports"
  34. config BOARD_USING_HSUSBD
  35. select BSP_USING_HSUSBD
  36. bool "Enable HSUSBD(over USB2.0)"
  37. help
  38. Choose this option if you need HSUSBD function mode.
  39. config BOARD_USING_HSUSBD_USBH
  40. select BSP_USING_USBH
  41. select BSP_USING_HSUSBD
  42. bool "Enable HSUSBD(over USB2.0) and USBH(over USB1.1)"
  43. help
  44. Choose this option if you need HSUSBD and USBH function mode at the same time.
  45. config BOARD_USING_HSUSBH
  46. select BSP_USING_HSUSBH
  47. bool "Enable HSUSBH(over USB2.0)"
  48. help
  49. Choose this option if you need HSUSBH function mode.
  50. config BOARD_USING_HSUSBH_USBD
  51. select BSP_USING_HSUSBH
  52. select BSP_USING_USBD
  53. bool "Enable HSUSBH(over USB2.0) and USBD(over USB1.1)"
  54. help
  55. Choose this option if you need HSUSBH and USBD function mode at the same time.
  56. config BOARD_USING_HSOTG
  57. select BSP_USING_HSOTG
  58. bool "Enable HSOTG(over USB2.0)"
  59. help
  60. Choose this option if you need HSOTG function mode.
  61. endchoice
  62. endmenu
  63. menu "Board extended module drivers"
  64. config BOARD_USING_ADVANCE_V4
  65. bool "Use BOARD_USING_ADVANCE_V4 board"
  66. default n
  67. if BOARD_USING_ADVANCE_V4
  68. config BOARD_USING_MAX31875
  69. bool "MAX31875 Temperature sensor(over i2c1)"
  70. select NU_PKG_USING_MAX31875
  71. select BSP_USING_I2C1
  72. default n
  73. config BOARD_USING_MPU6500
  74. bool "MPU6500 6-axis sensor(over i2c2)"
  75. select PKG_USING_SENSORS_DRIVERS
  76. select PKG_USING_MPU6XXX
  77. select PKG_USING_MPU6XXX_LATEST_VERSION
  78. select PKG_USING_MPU6XXX_ACCE
  79. select PKG_USING_MPU6XXX_GYRO
  80. select BSP_USING_I2C2
  81. default n
  82. config BOARD_USING_LCD_ILI9341
  83. bool "LCD ILI9341(over ebi0)"
  84. select NU_PKG_USING_ILI9341
  85. select NU_PKG_USING_ILI9341_EBI
  86. default n
  87. if BOARD_USING_LCD_ILI9341
  88. config BOARD_USING_ILI9341_EBI_PORT
  89. int "Specify EBI port index"
  90. range 0 2
  91. default 0
  92. config BOARD_USING_ILI9341_PIN_BACKLIGHT
  93. int "Specify the pin index of backlight pin index"
  94. range 0 127
  95. default 23
  96. config BOARD_USING_ILI9341_PIN_RESET
  97. int "Specify the pin index of reset pin index"
  98. range 0 127
  99. default 22
  100. config BOARD_USING_ILI9341_PIN_DC
  101. int "Specify the pin index of data&command switching"
  102. range 0 127
  103. default 115
  104. endif
  105. config BOARD_USING_AT24LC64
  106. bool "AT24LC64 EEPROM(over i2c2)"
  107. select BSP_USING_I2C
  108. select BSP_USING_I2C2
  109. select PKG_USING_AT24CXX
  110. default n
  111. config BOARD_USING_SRAM0_AS_MEMHEAP
  112. bool "EBI SRAM supporting(over ebi1)"
  113. select BSP_USING_EBI
  114. select RT_USING_MEMHEAP
  115. select RT_USING_MEMHEAP_AS_HEAP
  116. default n
  117. if BOARD_USING_SRAM0_AS_MEMHEAP
  118. config NU_EBI_SRAM0_SIZE
  119. hex "SRAM capacity(In byte)"
  120. range 0x200 0x100000
  121. default 0x80000
  122. depends on BSP_USING_EBI_BANK0
  123. endif
  124. config BOARD_USING_BUZZER
  125. bool "BUZZER.(over bpwm0_ch5)"
  126. select BSP_USING_BPWM
  127. select BSP_USING_BPWM0
  128. default n
  129. endif
  130. endmenu
  131. endmenu