Kconfig 6.1 KB

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