cmdline-examples: remove basic_char_loop() and use cmdline_interact()
[libcmdline.git] / Kconfig
1 #########################
2
3 # This is aversive2 configuration
4
5 menu GENERAL
6         prompt "General configuration"
7
8 config MATH_LIB
9         prompt "Include Math lib"
10         default n
11
12 choice GENERAL_PRINTF_TYPE
13         prompt "Printf type"
14         default "standard"
15         ---help---
16         Choose printf style. The minimal printf cannot handle
17         floats. The advanced printf can, but it requires the math
18         lib. Disable it if you don't use printf, you'll win some prog
19         space.
20
21 choiceconfig GENERAL_PRINTF_NONE
22         prompt "none"
23
24 choiceconfig GENERAL_PRINTF_MINIMAL
25         prompt "minimal"
26
27 choiceconfig GENERAL_PRINTF_STANDARD
28         prompt "standard"
29
30 choiceconfig GENERAL_PRINTF_ADVANCED
31         prompt "advanced"
32
33 endchoice # GENERAL_PRINTF_TYPE
34
35 intconfig QUARTZ
36         prompt "Quartz Frequency (Hz)"
37         default 12000000
38         ---help---
39         Choose the speed of your target device. This frequency is
40         specified in Hertz.
41
42 strconfig EXTRA_CFLAGS
43         prompt "Extra CFLAGS"
44         default ""
45         ---help---
46         These flags will be added when compiling sources.
47
48 endmenu # GENERAL
49
50 #########################
51
52 config MODULES
53         prompt "Enable modules"
54         default y
55         ---help---
56         Enable modules
57
58 #########################
59
60 if MODULES
61
62 menu BASE
63         prompt "Basic modules"
64         ---help---
65         Contains basic modules
66
67 config BASE_CIRBUF
68         prompt 'Circular buffer'
69         default y
70         ---help---
71         This module provides a circular buffer implementation (fifo or
72         lifo).
73
74 config BASE_CIRBUF_LARGE
75         prompt 'Large circular buffer'
76         requires BASE_CIRBUF
77         default n
78         ---help---
79         Allow buffer larger than 127
80
81 menuconfig BASE_SCHEDULER
82         prompt "Scheduler"
83         ---help---
84         The 'scheduler' module is NOT a scheduler in the same way than
85         in a multitask kernel. This module allow to schedule functions
86         in the future (only a call, or periodical call). If
87         CONFIG_MODULE_SCHEDULER_USE_TIMERS option is not enabled, the
88         functions are called from TIMER0 interrupt, else you can
89         choose which timer to use. This module is able to handle
90         priority between events.
91
92 config BASE_SCHEDULER_STATS
93         prompt "Enable debug statistics"
94
95 config BASE_SCHEDULER_CREATE_CONFIG
96         prompt "Create Default scheduler config"
97
98 choice BASE_SCHEDULER_MODE
99         prompt "Scheduler mode"
100         ---help---
101         Use either the hardware/timer module, the timer0 or a manual
102         call for the to call the scheduler. The generic timer module
103         support many archs and timers. If you don't enable it, you
104         must use TIMER0 overflow interrupt, and only some AVR are
105         supported, or you should can call the scheduler manually. In
106         this case, the SCHEDULER_UNIT macro has to be defined in
107         configuration file.
108
109 choiceconfig BASE_SCHEDULER_MODE_MANUAL
110         prompt "manual"
111
112 choiceconfig BASE_SCHEDULER_MODE_USE_TIMERS
113         prompt "timer_module"
114         requires HW_TIMER
115
116 choiceconfig BASE_SCHEDULER_MODE_USE_TIMER0
117         prompt "use_timer0"
118
119 endchoice # BASE_SCHEDULER_MODE
120
121 endmenuconfig # BASE_SCHEDULER
122
123 endmenu # BASE
124
125 #########################
126
127 source Kconfig2
128
129 endif # MODULES
130
131 #########################