Kconfig 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. menu "Nuvoton Packages Config"
  2. config NU_PKG_USING_UTILS
  3. bool
  4. default y
  5. config NU_PKG_USING_DEMO
  6. bool "Enable demos"
  7. default y
  8. config NU_PKG_USING_LVGL
  9. bool "Enable LVGL demos"
  10. default n
  11. config NU_PKG_USING_BMX055
  12. bool "BMX055 9-axis sensor."
  13. select RT_USING_I2C
  14. select RT_USING_SENSOR
  15. default n
  16. config NU_PKG_USING_MAX31875
  17. bool "MAX31875 Temperature sensor."
  18. select RT_USING_I2C
  19. select RT_USING_SENSOR
  20. default n
  21. config NU_PKG_USING_NAU88L25
  22. bool "NAU88L25 Audio Codec."
  23. select BSP_USING_I2C
  24. default n
  25. config NU_PKG_USING_NAU8822
  26. bool "NAU8822 Audio Codec."
  27. select BSP_USING_I2C
  28. default n
  29. config NU_PKG_USING_DA9062
  30. bool "DA9062 PMIC."
  31. select BSP_USING_I2C
  32. default n
  33. config NU_PKG_USING_ILI9341
  34. bool "ILI9341 LCD Panel"
  35. select BSP_USING_GPIO
  36. default n
  37. if NU_PKG_USING_ILI9341
  38. choice
  39. prompt "Select ili9341 interface"
  40. config NU_PKG_USING_ILI9341_SPI
  41. select BSP_USING_SPI
  42. bool "ILI9341_SPI"
  43. help
  44. Choose this option if you the ili9341 device is with SPI interface.
  45. config NU_PKG_USING_ILI9341_EBI
  46. select BSP_USING_EBI
  47. bool "ILI9341_EBI"
  48. help
  49. Choose this option if you the ili9341 device is with EBI interface.
  50. endchoice
  51. if NU_PKG_USING_ILI9341_SPI
  52. config NU_PKG_USING_ILI9341_SPI_CLK_FREQ
  53. int "Set SPI Clock frequency"
  54. default 48000000
  55. endif
  56. config NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER
  57. bool "Create an offscreen framebuffer."
  58. default n
  59. if NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER
  60. config NU_PKG_ILI9341_LINE_BUFFER_NUMBER
  61. int "Allocate Line buffer number."
  62. range 1 240
  63. default 240
  64. endif
  65. config NU_PKG_ILI9341_HORIZONTAL
  66. bool
  67. default y
  68. config BSP_LCD_BPP
  69. int
  70. default 16 if NU_PKG_USING_ILI9341
  71. config BSP_LCD_WIDTH
  72. int
  73. default 320 if NU_PKG_ILI9341_HORIZONTAL
  74. config BSP_LCD_HEIGHT
  75. int
  76. default 240 if NU_PKG_ILI9341_HORIZONTAL
  77. endif
  78. config NU_PKG_USING_SSD1963
  79. bool "SSD1963 LCD Panel"
  80. select BSP_USING_GPIO
  81. default n
  82. if NU_PKG_USING_SSD1963
  83. choice
  84. prompt "Select SSD1963 interface"
  85. config NU_PKG_USING_SSD1963_EBI
  86. select BSP_USING_EBI
  87. bool "SSD1963_EBI"
  88. help
  89. Choose this option if you the SSD1963 device is with EBI interface.
  90. endchoice
  91. config NU_PKG_SSD1963_WITH_OFFSCREEN_FRAMEBUFFER
  92. bool "Create an offscreen framebuffer."
  93. default n
  94. if NU_PKG_SSD1963_WITH_OFFSCREEN_FRAMEBUFFER
  95. config NU_PKG_SSD1963_LINE_BUFFER_NUMBER
  96. int "Allocate Line buffer number."
  97. range 16 272
  98. default 272
  99. endif
  100. config BSP_LCD_BPP
  101. int
  102. default 16 if NU_PKG_USING_SSD1963
  103. config BSP_LCD_WIDTH
  104. int
  105. default 480 if NU_PKG_USING_SSD1963
  106. config BSP_LCD_HEIGHT
  107. int
  108. default 272 if NU_PKG_USING_SSD1963
  109. endif
  110. config NU_PKG_USING_FSA506
  111. bool "FSA506 LCD Panel"
  112. select BSP_USING_GPIO
  113. default n
  114. if NU_PKG_USING_FSA506
  115. choice
  116. prompt "Select FSA506 interface"
  117. config NU_PKG_USING_FSA506_EBI
  118. select BSP_USING_EBI
  119. bool "FSA506_EBI"
  120. help
  121. Choose this option if you the FSA506 device is with EBI interface.
  122. endchoice
  123. config NU_PKG_FSA506_WITH_OFFSCREEN_FRAMEBUFFER
  124. bool "Create an offscreen framebuffer."
  125. default n
  126. if NU_PKG_FSA506_WITH_OFFSCREEN_FRAMEBUFFER
  127. config NU_PKG_FSA506_LINE_BUFFER_NUMBER
  128. int "Allocate Line buffer number."
  129. range 16 272
  130. default 272
  131. endif
  132. config BSP_LCD_BPP
  133. int
  134. default 16 if NU_PKG_USING_FSA506
  135. config BSP_LCD_WIDTH
  136. int
  137. default 480 if NU_PKG_USING_FSA506
  138. config BSP_LCD_HEIGHT
  139. int
  140. default 272 if NU_PKG_USING_FSA506
  141. endif
  142. config NU_PKG_USING_TPC
  143. bool "Support Touch Panel Controller over I2C"
  144. select RT_USING_TOUCH
  145. select RT_TOUCH_PIN_IRQ
  146. select RT_USING_I2C
  147. if NU_PKG_USING_TPC
  148. choice
  149. prompt "Select TPC drivers"
  150. config NU_PKG_USING_TPC_ILI
  151. bool "ILI Series TPC"
  152. default n
  153. config NU_PKG_USING_TPC_GT911
  154. bool "GT911 TPC"
  155. default n
  156. config NU_PKG_USING_TPC_FT5446
  157. bool "FT5446 TPC"
  158. default n
  159. config NU_PKG_USING_TPC_ST1663I
  160. bool "ST1663I TPC"
  161. default n
  162. endchoice
  163. config NU_PKG_TPC_REVERSE_XY
  164. bool "Reverse X-Y coordinate"
  165. default n
  166. endif
  167. config NU_PKG_USING_ADC_TOUCH
  168. bool "ADC touch function"
  169. default n
  170. if NU_PKG_USING_ADC_TOUCH
  171. config NU_PKG_USING_ADC_TOUCH_SW
  172. bool "Using SW ADC touch"
  173. select RT_USING_ADC
  174. default n
  175. endif
  176. config NU_PKG_USING_SPINAND
  177. bool "SPI NAND flash."
  178. select BSP_USING_QSPI
  179. select RT_USING_MTD_NAND
  180. default n
  181. endmenu