Kconfig 6.2 KB

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