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