• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#===============================================================================
2# @brief    Kconfig file.
3# Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
4#===============================================================================
5config ENABLE_ALL_PERIPHERAL_SAMPLE
6    bool
7    prompt "Enable all the sample of peripheral, it's just for build."
8    default n
9    depends on ENABLE_PERIPHERAL_SAMPLE
10    select SAMPLE_SUPPORT_ADC
11    select SAMPLE_SUPPORT_AMIC if ADC_SUPPORT_AMIC
12    select SAMPLE_SUPPORT_BLINKY
13    select SAMPLE_SUPPORT_BUTTON
14    select SAMPLE_SUPPORT_CALENDAR
15    select SAMPLE_SUPPORT_CLOCKS
16    select SAMPLE_SUPPORT_DMA
17    select SAMPLE_SUPPORT_EFLASH
18    select SAMPLE_SUPPORT_I2C
19    select SAMPLE_SUPPORT_I2S
20    select SAMPLE_SUPPORT_I2S_DMA
21    select SAMPLE_SUPPORT_I2S_DMA_LLI
22    select SAMPLE_SUPPORT_KEYSCAN
23    select SAMPLE_SUPPORT_PDM
24    select SAMPLE_SUPPORT_PDM_AMIC if ADC_SUPPORT_AMIC
25    select SAMPLE_SUPPORT_PINCTRL
26    select SAMPLE_SUPPORT_PWM
27    select SAMPLE_SUPPORT_QDEC
28    select SAMPLE_SUPPORT_RTC
29    select SAMPLE_SUPPORT_SPI
30    select SAMPLE_SUPPORT_SYSTICK
31    select SAMPLE_SUPPORT_TASKS
32    select SAMPLE_SUPPORT_TCXO
33    select SAMPLE_SUPPORT_TIMER
34    select SAMPLE_SUPPORT_UART
35    select SAMPLE_SUPPORT_WDT
36    help
37        This option means enable all the sample of peripheral, it is just for build.
38
39config SAMPLE_SUPPORT_ADC
40    bool
41    prompt "Support ADC Sample."
42    default n
43    depends on ENABLE_PERIPHERAL_SAMPLE
44    help
45        This option means support ADC Sample.
46
47if SAMPLE_SUPPORT_ADC
48menu "ADC Sample Configuration"
49    osource "application/samples/peripheral/adc/Kconfig"
50endmenu
51endif
52
53config SAMPLE_SUPPORT_AMIC
54    bool
55    prompt "Support AMIC Sample."
56    default n
57    depends on ENABLE_PERIPHERAL_SAMPLE
58    help
59        This option means support AMIC Sample.
60
61if SAMPLE_SUPPORT_AMIC
62menu "AFE Sample Configuration"
63    osource "application/samples/peripheral/amic/Kconfig"
64endmenu
65endif
66
67config SAMPLE_SUPPORT_BLINKY
68    bool
69    prompt "Support BLINKY Sample."
70    default n
71    depends on ENABLE_PERIPHERAL_SAMPLE
72    help
73        This option means support BLINKY Sample.
74
75config SAMPLE_SUPPORT_BUTTON
76    bool
77    prompt "Support BUTTON Sample."
78    default n
79    depends on ENABLE_PERIPHERAL_SAMPLE
80    help
81        This option means support BUTTON Sample.
82if SAMPLE_SUPPORT_BUTTON
83menu "BUTTON Sample Configuration"
84    osource "application/samples/peripheral/button/Kconfig"
85endmenu
86endif
87
88config SAMPLE_SUPPORT_CALENDAR
89    bool
90    prompt "Support CALENDAR Sample."
91    default n
92    depends on ENABLE_PERIPHERAL_SAMPLE
93    help
94        This option means support CALENDAR Sample.
95
96if SAMPLE_SUPPORT_CALENDAR
97menu "CALENDAR Sample Configuration"
98    osource "application/samples/peripheral/calendar/Kconfig"
99endmenu
100endif
101
102config SAMPLE_SUPPORT_CAN
103    bool
104    prompt "Support CAN Sample."
105    default n
106    depends on ENABLE_PERIPHERAL_SAMPLE
107    select DRIVER_SUPPORT_CAN_FD
108    help
109        This option means support CAN Sample.
110
111if SAMPLE_SUPPORT_CAN
112menu "CAN Sample Configuration"
113    osource "application/samples/peripheral/can/Kconfig"
114endmenu
115endif
116config SAMPLE_SUPPORT_CLOCKS
117    bool
118    prompt "Support CLOCKS Sample."
119    default n
120    depends on ENABLE_PERIPHERAL_SAMPLE
121    help
122        This option means support CLOCKS Sample.
123
124if SAMPLE_SUPPORT_CLOCKS
125menu "CLOCKS Sample Configuration"
126    osource "application/samples/peripheral/clocks/Kconfig"
127endmenu
128endif
129
130config SAMPLE_SUPPORT_DMA
131    bool
132    prompt "Support DMA Sample."
133    default n
134    depends on ENABLE_PERIPHERAL_SAMPLE
135    help
136        This option means support DMA Sample.
137
138if SAMPLE_SUPPORT_DMA
139menu "DMA Sample Configuration"
140    osource "application/samples/peripheral/dma/Kconfig"
141endmenu
142endif
143
144config SAMPLE_SUPPORT_EFLASH
145    bool
146    prompt "Support EFLASH Sample."
147    default n
148    depends on ENABLE_PERIPHERAL_SAMPLE
149    help
150        This option means support EFLASH Sample.
151
152if SAMPLE_SUPPORT_EFLASH
153menu "EFLASH Sample Configuration"
154    osource "application/samples/peripheral/eflash/Kconfig"
155endmenu
156endif
157
158config SAMPLE_SUPPORT_I2C
159    bool
160    prompt "Support I2C Sample."
161    default n
162    depends on ENABLE_PERIPHERAL_SAMPLE
163    help
164        This option means support I2C Sample.
165
166if SAMPLE_SUPPORT_I2C
167menu "I2C Sample Configuration"
168    osource "application/samples/peripheral/i2c/Kconfig"
169endmenu
170endif
171
172config SAMPLE_SUPPORT_I2S
173    bool
174    prompt "Support I2S Sample."
175    default n
176    depends on ENABLE_PERIPHERAL_SAMPLE
177    help
178        This option means support I2S Sample.
179
180if SAMPLE_SUPPORT_I2S
181menu "I2S Sample Configuration"
182    osource "application/samples/peripheral/i2s/Kconfig"
183endmenu
184endif
185
186config SAMPLE_SUPPORT_I2S_DMA
187    bool
188    prompt "Support I2S DMA Sample."
189    default n
190    depends on ENABLE_PERIPHERAL_SAMPLE
191    select I2S_SUPPORT_DMA
192    help
193        This option means support I2S DMA Sample.
194
195if SAMPLE_SUPPORT_I2S_DMA
196menu "I2S DMA Sample Configuration"
197    osource "application/samples/peripheral/i2s_dma/Kconfig"
198endmenu
199endif
200
201config SAMPLE_SUPPORT_I2S_DMA_LLI
202    bool
203    prompt "Support I2S DMA lli Sample."
204    default n
205    depends on ENABLE_PERIPHERAL_SAMPLE
206    select I2S_SUPPORT_DMA
207    help
208        This option means support I2S DMA LLI Sample.
209
210if SAMPLE_SUPPORT_I2S_DMA_LLI
211menu "I2S DMA lli Sample Configuration"
212    osource "application/samples/peripheral/i2s_dma_lli/Kconfig"
213endmenu
214endif
215
216config SAMPLE_SUPPORT_KEYSCAN
217    bool
218    prompt "Support KEYSCAN Sample."
219    default n
220    depends on ENABLE_PERIPHERAL_SAMPLE
221    help
222        This option means support KEYSCAN Sample.
223
224config SAMPLE_SUPPORT_PDM
225    bool
226    prompt "Support PDM Sample."
227    default n
228    depends on ENABLE_PERIPHERAL_SAMPLE
229    help
230        This option means support PDM Sample.
231
232if SAMPLE_SUPPORT_PDM
233menu "PDM Sample Configuration"
234    osource "application/samples/peripheral/pdm/Kconfig"
235endmenu
236endif
237
238config SAMPLE_SUPPORT_PDM_AMIC
239    bool
240    prompt "Support PDM AMIC Sample."
241    default n
242    depends on ENABLE_PERIPHERAL_SAMPLE && ADC_SUPPORT_AMIC
243    help
244        This option means support PDM AMIC Sample.
245
246if SAMPLE_SUPPORT_PDM_AMIC
247menu "PDM AMIC Sample Configuration"
248    osource "application/samples/peripheral/pdm_amic/Kconfig"
249endmenu
250endif
251
252config SAMPLE_SUPPORT_PINCTRL
253    bool
254    prompt "Support PINCTRL Sample."
255    default n
256    depends on ENABLE_PERIPHERAL_SAMPLE
257    help
258        This option means support PINCTRL Sample.
259
260if SAMPLE_SUPPORT_PINCTRL
261menu "PINCTRL Sample Configuration"
262    osource "application/samples/peripheral/pinctrl/Kconfig"
263endmenu
264endif
265
266config SAMPLE_SUPPORT_PWM
267    bool
268    prompt "Support PWM Sample."
269    default n
270    depends on ENABLE_PERIPHERAL_SAMPLE
271    help
272        This option means support PWM Sample.
273
274if SAMPLE_SUPPORT_PWM
275menu "PWM Sample Configuration"
276    osource "application/samples/peripheral/pwm/Kconfig"
277endmenu
278endif
279
280config SAMPLE_SUPPORT_QDEC
281    bool
282    prompt "Support QDEC Sample."
283    default n
284    depends on ENABLE_PERIPHERAL_SAMPLE
285    help
286        This option means support QDEC Sample.
287
288if SAMPLE_SUPPORT_QDEC
289menu "QDEC Sample Configuration"
290    osource "application/samples/peripheral/qdec/Kconfig"
291endmenu
292endif
293
294config SAMPLE_SUPPORT_RTC
295    bool
296    prompt "Support RTC Sample."
297    default n
298    depends on ENABLE_PERIPHERAL_SAMPLE
299    help
300        This option means support RTC Sample.
301
302if SAMPLE_SUPPORT_RTC
303menu "RTC Sample Configuration"
304    osource "application/samples/peripheral/rtc/Kconfig"
305endmenu
306endif
307
308config SAMPLE_SUPPORT_SFC
309    bool
310    prompt "Support SFC Sample."
311    default n
312    depends on ENABLE_PERIPHERAL_SAMPLE
313    help
314        This option means support SFC Sample.
315
316if SAMPLE_SUPPORT_SFC
317menu "SFC Sample Configuration"
318    osource "application/samples/peripheral/sfc/Kconfig"
319endmenu
320endif
321
322config SAMPLE_SUPPORT_SPI
323    bool
324    prompt "Support SPI Sample."
325    default n
326    depends on ENABLE_PERIPHERAL_SAMPLE
327    help
328        This option means support SPI Sample.
329
330if SAMPLE_SUPPORT_SPI
331menu "SPI Sample Configuration"
332    osource "application/samples/peripheral/spi/Kconfig"
333endmenu
334endif
335
336config SAMPLE_SUPPORT_SYSTICK
337    bool
338    prompt "Support SYSTICK Sample."
339    default n
340    depends on ENABLE_PERIPHERAL_SAMPLE
341    help
342        This option means support SYSTICK Sample.
343
344config SAMPLE_SUPPORT_TASKS
345    bool
346    prompt "Support TASKS Test Sample."
347    default n
348    depends on ENABLE_PERIPHERAL_SAMPLE
349    help
350        This option means support TASKS Test Sample.
351
352config SAMPLE_SUPPORT_TCXO
353    bool
354    prompt "Support TCXO Sample."
355    default n
356    depends on ENABLE_PERIPHERAL_SAMPLE
357    help
358        This option means support TCXO Sample.
359
360config SAMPLE_SUPPORT_TIMER
361    bool
362    prompt "Support TIMER Sample."
363    default n
364    depends on ENABLE_PERIPHERAL_SAMPLE
365    help
366        This option means support TIMER Sample.
367
368if SAMPLE_SUPPORT_TIMER
369menu "TIMER Sample Configuration"
370    osource "application/samples/peripheral/timer/Kconfig"
371endmenu
372endif
373
374config SAMPLE_SUPPORT_UART
375    bool
376    prompt "Support UART Sample."
377    default n
378    depends on ENABLE_PERIPHERAL_SAMPLE
379    help
380        This option means support UART Sample.
381
382if SAMPLE_SUPPORT_UART
383menu "UART Sample Configuration"
384    osource "application/samples/peripheral/uart/Kconfig"
385endmenu
386endif
387
388config SAMPLE_SUPPORT_WDT
389    bool
390    prompt "Support WATCHDOG Sample."
391    default n
392    depends on ENABLE_PERIPHERAL_SAMPLE
393    help
394        This option means support WATCHDOG Sample.
395
396if SAMPLE_SUPPORT_WDT
397menu "WATCHDOG Sample Configuration"
398    osource "application/samples/peripheral/watchdog/Kconfig"
399endmenu
400endif