-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathKconfig
More file actions
162 lines (123 loc) · 2.84 KB
/
Kconfig
File metadata and controls
162 lines (123 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
menu "Ctshell Configuration"
config CTSHELL_USE_KCONFIG
bool
default y
menu "Feature Options"
config CTSHELL_USE_BUILTIN_CMDS
bool "Enable builtin commands"
default y
config CTSHELL_USE_DOUBLE
bool "Enable double support"
default n
config CTSHELL_USE_FS
bool "Enable filesystem extension"
default n
config CTSHELL_USE_FS_FATFS
bool "Enable FatFs backend"
depends on CTSHELL_USE_FS
default n
config CTSHELL_USE_FS_POSIX
bool "Enable POSIX backend"
depends on CTSHELL_USE_FS
default n
endmenu
menu "Resource Limits"
config CTSHELL_CMD_NAME_MAX_LEN
int "Command name max length"
default 16
range 4 64
config CTSHELL_LINE_BUF_SIZE
int "Command line buffer size"
default 128
range 32 1024
config CTSHELL_MAX_ARGS
int "Maximum argument count"
default 16
range 1 64
config CTSHELL_HISTORY_SIZE
int "History buffer entries"
default 5
range 0 32
config CTSHELL_VAR_MAX_COUNT
int "Maximum variable count"
default 8
range 0 64
config CTSHELL_VAR_NAME_LEN
int "Variable name max length"
default 16
range 4 64
config CTSHELL_VAR_VAL_LEN
int "Variable value max length"
default 32
range 8 256
config CTSHELL_FIFO_SIZE
int "Input FIFO size"
default 128
range 32 512
config CTSHELL_PROMPT
string "Shell prompt string"
default "ctsh>> "
config CTSHELL_FS_PATH_MAX
int "Filesystem path max length"
depends on CTSHELL_USE_FS
default 256
config CTSHELL_FS_NAME_MAX
int "Filesystem filename max length"
depends on CTSHELL_USE_FS
default 64
endmenu
menu "Port Options"
choice CTSHELL_PORT_SELECT
prompt "Select Platform Port"
default CTSHELL_PORT_CUSTOM
config CTSHELL_PORT_CUSTOM
bool
prompt "CUSTOM (Implement it yourself)"
config CTSHELL_PORT_ESP32
bool
prompt "ESP-IDF"
config CTSHELL_PORT_STM32
bool
prompt "STM32 HAL"
config CTSHELL_PORT_WINDOWS
bool
prompt "Windows(for test use)"
endchoice
if CTSHELL_PORT_ESP32
menu "ESP-IDF Port Configuration"
config CTSHELL_ESP32_UART_NUM
int "UART port number"
default 2
config CTSHELL_ESP32_UART_TX
int "UART TX pin"
default 9
config CTSHELL_ESP32_UART_RX
int "UART RX pin"
default 10
config CTSHELL_ESP32_UART_BAUD
int "UART baud rate"
default 115200
config CTSHELL_ESP32_RX_BUF_SIZE
int "UART RX buffer size"
default 1024
range 128 4096
config CTSHELL_ESP32_TASK_STACK
int "Shell task stack size"
default 4096
config CTSHELL_ESP32_TASK_PRIO
int "Shell task priority"
default 5
endmenu
endif
if CTSHELL_PORT_STM32
menu "STM32 HAL Port Configuration"
comment "No specific configuration for STM32 HAL Port"
endmenu
endif
if CTSHELL_PORT_WINDOWS
menu "Windows Port Configuration"
comment "No specific configuration for Windows Port"
endmenu
endif
endmenu
endmenu