Kconfig 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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_NAU88L25
  19. bool "NAU88L25 Audio Codec."
  20. select BSP_USING_I2C
  21. default n
  22. config NU_PKG_USING_NAU8822
  23. bool "NAU8822 Audio Codec."
  24. select BSP_USING_I2C
  25. default n
  26. config NU_PKG_USING_DA9062
  27. bool "DA9062 PMIC."
  28. select BSP_USING_I2C
  29. default n
  30. config NU_PKG_USING_ILI9341
  31. bool "ILI9341 LCD Panel"
  32. select BSP_USING_GPIO
  33. default n
  34. if NU_PKG_USING_ILI9341
  35. choice
  36. prompt "Select ili9341 interface"
  37. config NU_PKG_USING_ILI9341_SPI
  38. select BSP_USING_SPI
  39. bool "ILI9341_SPI"
  40. help
  41. Choose this option if you the ili9341 device is with SPI interface.
  42. config NU_PKG_USING_ILI9341_EBI
  43. select BSP_USING_EBI
  44. bool "ILI9341_EBI"
  45. help
  46. Choose this option if you the ili9341 device is with EBI interface.
  47. endchoice
  48. if NU_PKG_USING_ILI9341_SPI
  49. config NU_PKG_USING_ILI9341_SPI_CLK_FREQ
  50. int "Set SPI Clock frequency"
  51. default 48000000
  52. endif
  53. config NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER
  54. bool "Create an offscreen framebuffer."
  55. default n
  56. if NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER
  57. config NU_PKG_ILI9341_LINE_BUFFER_NUMBER
  58. int "Allocate Line buffer number."
  59. range 1 240
  60. default 240
  61. endif
  62. config NU_PKG_ILI9341_HORIZONTAL
  63. bool
  64. default y
  65. config BSP_LCD_BPP
  66. int
  67. default 16 if NU_PKG_USING_ILI9341
  68. config BSP_LCD_WIDTH
  69. int
  70. default 320 if NU_PKG_ILI9341_HORIZONTAL
  71. config BSP_LCD_HEIGHT
  72. int
  73. default 240 if NU_PKG_ILI9341_HORIZONTAL
  74. endif
  75. config NU_PKG_USING_SSD1963
  76. bool "SSD1963 LCD Panel"
  77. select BSP_USING_GPIO
  78. default n
  79. if NU_PKG_USING_SSD1963
  80. choice
  81. prompt "Select SSD1963 interface"
  82. config NU_PKG_USING_SSD1963_EBI
  83. select BSP_USING_EBI
  84. bool "SSD1963_EBI"
  85. help
  86. Choose this option if you the SSD1963 device is with EBI interface.
  87. endchoice
  88. config NU_PKG_SSD1963_WITH_OFFSCREEN_FRAMEBUFFER
  89. bool "Create an offscreen framebuffer."
  90. default n
  91. if NU_PKG_SSD1963_WITH_OFFSCREEN_FRAMEBUFFER
  92. config NU_PKG_SSD1963_LINE_BUFFER_NUMBER
  93. int "Allocate Line buffer number."
  94. range 16 272
  95. default 272
  96. endif
  97. config BSP_LCD_BPP
  98. int
  99. default 16 if NU_PKG_USING_SSD1963
  100. config BSP_LCD_WIDTH
  101. int
  102. default 480 if NU_PKG_USING_SSD1963
  103. config BSP_LCD_HEIGHT
  104. int
  105. default 272 if NU_PKG_USING_SSD1963
  106. endif
  107. config NU_PKG_USING_TPC
  108. bool "Support Touch Panel Controller over I2C"
  109. select RT_USING_TOUCH
  110. select RT_TOUCH_PIN_IRQ
  111. select RT_USING_I2C
  112. if NU_PKG_USING_TPC
  113. choice
  114. prompt "Select TPC drivers"
  115. config NU_PKG_USING_TPC_ILI
  116. bool "ILI Series TPC"
  117. default n
  118. config NU_PKG_USING_TPC_GT911
  119. bool "GT911 TPC"
  120. default n
  121. endchoice
  122. endif
  123. config NU_PKG_USING_ADC_TOUCH
  124. bool "ADC touch function"
  125. default n
  126. if NU_PKG_USING_ADC_TOUCH
  127. config NU_PKG_USING_ADC_TOUCH_SW
  128. bool "Using SW ADC touch"
  129. select RT_USING_ADC
  130. default n
  131. endif
  132. config NU_PKG_USING_SPINAND
  133. bool "SPI NAND flash."
  134. select BSP_USING_QSPI
  135. select RT_USING_MTD_NAND
  136. default n
  137. endmenu