RTEMS 6.1-rc5
Loading...
Searching...
No Matches
shellconfig.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
9/*
10 * COPYRIGHT (c) 1989-2012.
11 * On-Line Applications Research Corporation (OAR).
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
15 * are met:
16 * 1. Redistributions of source code must retain the above copyright
17 * notice, this list of conditions and the following disclaimer.
18 * 2. Redistributions in binary form must reproduce the above copyright
19 * notice, this list of conditions and the following disclaimer in the
20 * documentation and/or other materials provided with the distribution.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 */
34
35#ifndef _RTEMS_SHELL_CONFIG_h
36#define _RTEMS_SHELL_CONFIG_h
37
38#include <rtems/shell.h>
39
40/*
41 * Externs for all command definition structures
42 */
43extern rtems_shell_cmd_t rtems_shell_HELP_Command;
44extern rtems_shell_cmd_t rtems_shell_ALIAS_Command;
45extern rtems_shell_cmd_t rtems_shell_TIME_Command;
46extern rtems_shell_cmd_t rtems_shell_CMDLS_Command;
47extern rtems_shell_cmd_t rtems_shell_CMDCHOWN_Command;
48extern rtems_shell_cmd_t rtems_shell_CMDCHMOD_Command;
49extern rtems_shell_cmd_t rtems_shell_LOGOFF_Command;
50extern rtems_shell_cmd_t rtems_shell_SETENV_Command;
51extern rtems_shell_cmd_t rtems_shell_GETENV_Command;
52extern rtems_shell_cmd_t rtems_shell_UNSETENV_Command;
53
54extern rtems_shell_cmd_t rtems_shell_MDUMP_Command;
55extern rtems_shell_cmd_t rtems_shell_WDUMP_Command;
56extern rtems_shell_cmd_t rtems_shell_LDUMP_Command;
57extern rtems_shell_cmd_t rtems_shell_MEDIT_Command;
58extern rtems_shell_cmd_t rtems_shell_MFILL_Command;
59extern rtems_shell_cmd_t rtems_shell_MMOVE_Command;
60
61extern rtems_shell_cmd_t rtems_shell_JOEL_Command;
62extern rtems_shell_cmd_t rtems_shell_DATE_Command;
63extern rtems_shell_cmd_t rtems_shell_ECHO_Command;
64extern rtems_shell_cmd_t rtems_shell_EDIT_Command;
65extern rtems_shell_cmd_t rtems_shell_SLEEP_Command;
66extern rtems_shell_cmd_t rtems_shell_ID_Command;
67extern rtems_shell_cmd_t rtems_shell_TTY_Command;
68extern rtems_shell_cmd_t rtems_shell_WHOAMI_Command;
69
70extern rtems_shell_cmd_t rtems_shell_CP_Command;
71extern rtems_shell_cmd_t rtems_shell_PWD_Command;
72extern rtems_shell_cmd_t rtems_shell_LS_Command;
73extern rtems_shell_cmd_t rtems_shell_CHDIR_Command;
74extern rtems_shell_cmd_t rtems_shell_MKDIR_Command;
75extern rtems_shell_cmd_t rtems_shell_RMDIR_Command;
76extern rtems_shell_cmd_t rtems_shell_CHROOT_Command;
77extern rtems_shell_cmd_t rtems_shell_CHMOD_Command;
78extern rtems_shell_cmd_t rtems_shell_CAT_Command;
79extern rtems_shell_cmd_t rtems_shell_MKRFS_Command;
80extern rtems_shell_cmd_t rtems_shell_MSDOSFMT_Command;
81extern rtems_shell_cmd_t rtems_shell_MSDOSFMT_Alias;
82extern rtems_shell_cmd_t rtems_shell_MV_Command;
83extern rtems_shell_cmd_t rtems_shell_RM_Command;
84extern rtems_shell_cmd_t rtems_shell_LN_Command;
85extern rtems_shell_cmd_t rtems_shell_MKNOD_Command;
86extern rtems_shell_cmd_t rtems_shell_UMASK_Command;
87extern rtems_shell_cmd_t rtems_shell_LSOF_Command;
88extern rtems_shell_cmd_t rtems_shell_MOUNT_Command;
89extern rtems_shell_cmd_t rtems_shell_UNMOUNT_Command;
90extern rtems_shell_cmd_t rtems_shell_BLKSYNC_Command;
91extern rtems_shell_cmd_t rtems_shell_BLKSTATS_Command;
92extern rtems_shell_cmd_t rtems_shell_FDISK_Command;
93extern rtems_shell_cmd_t rtems_shell_DD_Command;
94extern rtems_shell_cmd_t rtems_shell_HEXDUMP_Command;
95extern rtems_shell_cmd_t rtems_shell_DEBUGRFS_Command;
96extern rtems_shell_cmd_t rtems_shell_DF_Command;
97extern rtems_shell_cmd_t rtems_shell_MD5_Command;
98
99extern rtems_shell_cmd_t rtems_shell_RTC_Command;
100extern rtems_shell_cmd_t rtems_shell_SPI_Command;
101extern rtems_shell_cmd_t rtems_shell_FLASHDEV_Command;
102extern rtems_shell_cmd_t rtems_shell_I2CDETECT_Command;
103extern rtems_shell_cmd_t rtems_shell_I2CGET_Command;
104extern rtems_shell_cmd_t rtems_shell_I2CSET_Command;
105
106extern rtems_shell_cmd_t rtems_shell_SHUTDOWN_Command;
107extern rtems_shell_cmd_t rtems_shell_CPUINFO_Command;
108extern rtems_shell_cmd_t rtems_shell_CPUUSE_Command;
109extern rtems_shell_cmd_t rtems_shell_TOP_Command;
110extern rtems_shell_cmd_t rtems_shell_STACKUSE_Command;
111extern rtems_shell_cmd_t rtems_shell_PERIODUSE_Command;
112extern rtems_shell_cmd_t rtems_shell_PROFREPORT_Command;
113extern rtems_shell_cmd_t rtems_shell_WKSPACE_INFO_Command;
114extern rtems_shell_cmd_t rtems_shell_RTEMS_Command;
115extern rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command;
116extern rtems_shell_cmd_t rtems_shell_RTRACE_Command;
117#if RTEMS_NETWORKING
118 extern rtems_shell_cmd_t rtems_shell_IFCONFIG_Command;
119 extern rtems_shell_cmd_t rtems_shell_ROUTE_Command;
120 extern rtems_shell_cmd_t rtems_shell_NETSTATS_Command;
121 extern rtems_shell_cmd_t rtems_shell_PING_Command;
122#endif
123
124/*
125 * Extern for System commands
126 */
127extern rtems_shell_cmd_t rtems_shell_DRVMGR_Command;
128extern rtems_shell_cmd_t rtems_shell_PCI_Command;
129
130extern rtems_shell_cmd_t * const rtems_shell_Initial_commands[];
131
132/*
133 * Extern for alias commands
134 */
135extern rtems_shell_alias_t rtems_shell_DIR_Alias;
136extern rtems_shell_alias_t rtems_shell_CD_Alias;
137extern rtems_shell_alias_t rtems_shell_EXIT_Alias;
138
139extern rtems_shell_alias_t * const rtems_shell_Initial_aliases[];
140
141/*
142 * If we are configured to alias a command, then make sure the underlying
143 * command is configured.
144 */
145
146#if !defined(CONFIGURE_SHELL_COMMANDS_ALL)
147 #if defined(CONFIGURE_SHELL_COMMANDS_DIR) && \
148 !defined(CONFIGURE_SHELL_COMMANDS_LS)
149 #define CONFIGURE_SHELL_COMMAND_LS
150 #endif
151
152 #if defined(CONFIGURE_SHELL_COMMANDS_CD) && \
153 !defined(CONFIGURE_SHELL_COMMANDS_CHDIR)
154 #define CONFIGURE_SHELL_COMMAND_CHDIR
155 #endif
156
157 #if defined(CONFIGURE_SHELL_COMMANDS_EXIT) && \
158 !defined(CONFIGURE_SHELL_COMMANDS_LOGOFF)
159 #define CONFIGURE_SHELL_COMMAND_LOGOFF
160 #endif
161#endif
162
163#if defined(CONFIGURE_SHELL_COMMANDS_INIT)
164 rtems_shell_alias_t * const rtems_shell_Initial_aliases[] = {
165 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
166 !defined(CONFIGURE_SHELL_NO_COMMAND_DIR)) || \
167 defined(CONFIGURE_SHELL_COMMAND_DIR)
168 &rtems_shell_DIR_Alias,
169 #endif
170 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
171 !defined(CONFIGURE_SHELL_NO_COMMAND_CD)) || \
172 defined(CONFIGURE_SHELL_COMMAND_CD)
173 &rtems_shell_CD_Alias,
174 #endif
175 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
176 !defined(CONFIGURE_SHELL_NO_COMMAND_EXIT)) || \
177 defined(CONFIGURE_SHELL_COMMAND_EXIT)
178 &rtems_shell_EXIT_Alias,
179 #endif
180
181 /*
182 * User defined shell aliases
183 */
184 #if defined(CONFIGURE_SHELL_USER_ALIASES)
185 CONFIGURE_SHELL_USER_ALIASES,
186 #endif
187 NULL
188 };
189
190 rtems_shell_cmd_t * const rtems_shell_Initial_commands[] = {
191 /*
192 * General comamnds that should be present
193 */
194 &rtems_shell_HELP_Command,
195 &rtems_shell_ALIAS_Command,
196 &rtems_shell_TIME_Command,
197
198 /*
199 * Common commands that can be optional
200 */
201 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
202 !defined(CONFIGURE_SHELL_NO_COMMAND_CMDLS)) || \
203 defined(CONFIGURE_SHELL_COMMAND_CMDLS)
204 &rtems_shell_CMDLS_Command,
205 #endif
206 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
207 !defined(CONFIGURE_SHELL_NO_COMMAND_CMDCHOWN)) || \
208 defined(CONFIGURE_SHELL_COMMAND_CMDCHOWN)
209 &rtems_shell_CMDCHOWN_Command,
210 #endif
211 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
212 !defined(CONFIGURE_SHELL_NO_COMMAND_CMDCHMOD)) || \
213 defined(CONFIGURE_SHELL_COMMAND_CMDCHMOD)
214 &rtems_shell_CMDCHMOD_Command,
215 #endif
216 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
217 !defined(CONFIGURE_SHELL_NO_COMMAND_JOEL)) || \
218 defined(CONFIGURE_SHELL_COMMAND_JOEL)
219 &rtems_shell_JOEL_Command,
220 #endif
221 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
222 !defined(CONFIGURE_SHELL_NO_COMMAND_DATE)) || \
223 defined(CONFIGURE_SHELL_COMMAND_DATE)
224 &rtems_shell_DATE_Command,
225 #endif
226 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
227 !defined(CONFIGURE_SHELL_NO_COMMAND_ECHO)) || \
228 defined(CONFIGURE_SHELL_COMMAND_ECHO)
229 &rtems_shell_ECHO_Command,
230 #endif
231 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
232 !defined(CONFIGURE_SHELL_NO_COMMAND_EDIT)) || \
233 defined(CONFIGURE_SHELL_COMMAND_EDIT)
234 &rtems_shell_EDIT_Command,
235 #endif
236 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
237 !defined(CONFIGURE_SHELL_NO_COMMAND_SLEEP)) || \
238 defined(CONFIGURE_SHELL_COMMAND_SLEEP)
239 &rtems_shell_SLEEP_Command,
240 #endif
241 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
242 !defined(CONFIGURE_SHELL_NO_COMMAND_ID)) || \
243 defined(CONFIGURE_SHELL_COMMAND_ID)
244 &rtems_shell_ID_Command,
245 #endif
246 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
247 !defined(CONFIGURE_SHELL_NO_COMMAND_TTY)) || \
248 defined(CONFIGURE_SHELL_COMMAND_TTY)
249 &rtems_shell_TTY_Command,
250 #endif
251 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
252 !defined(CONFIGURE_SHELL_NO_COMMAND_WHOAMI)) || \
253 defined(CONFIGURE_SHELL_COMMAND_WHOAMI)
254 &rtems_shell_WHOAMI_Command,
255 #endif
256 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
257 !defined(CONFIGURE_SHELL_NO_COMMAND_LOGOFF)) || \
258 defined(CONFIGURE_SHELL_COMMAND_LOGOFF)
259 &rtems_shell_LOGOFF_Command,
260 #endif
261 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
262 !defined(CONFIGURE_SHELL_NO_COMMAND_SETENV)) || \
263 defined(CONFIGURE_SHELL_COMMAND_SETENV)
264 &rtems_shell_SETENV_Command,
265 #endif
266 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
267 !defined(CONFIGURE_SHELL_NO_COMMAND_GETENV)) || \
268 defined(CONFIGURE_SHELL_COMMAND_GETENV)
269 &rtems_shell_GETENV_Command,
270 #endif
271 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
272 !defined(CONFIGURE_SHELL_NO_COMMAND_CRLENV)) || \
273 defined(CONFIGURE_SHELL_COMMAND_UNSETENV)
274 &rtems_shell_UNSETENV_Command,
275 #endif
276
277 /*
278 * Memory printing/modification family commands
279 */
280 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
281 !defined(CONFIGURE_SHELL_NO_COMMAND_MDUMP)) || \
282 defined(CONFIGURE_SHELL_COMMAND_MDUMP)
283 &rtems_shell_MDUMP_Command,
284 #endif
285 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
286 !defined(CONFIGURE_SHELL_NO_COMMAND_WDUMP)) || \
287 defined(CONFIGURE_SHELL_COMMAND_WDUMP)
288 &rtems_shell_WDUMP_Command,
289 #endif
290 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
291 !defined(CONFIGURE_SHELL_NO_COMMAND_LDUMP)) || \
292 defined(CONFIGURE_SHELL_COMMAND_LDUMP)
293 &rtems_shell_LDUMP_Command,
294 #endif
295 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
296 !defined(CONFIGURE_SHELL_NO_COMMAND_MEDIT)) || \
297 defined(CONFIGURE_SHELL_COMMAND_MEDIT)
298 &rtems_shell_MEDIT_Command,
299 #endif
300 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
301 !defined(CONFIGURE_SHELL_NO_COMMAND_MFILL)) || \
302 defined(CONFIGURE_SHELL_COMMAND_MFILL)
303 &rtems_shell_MFILL_Command,
304 #endif
305 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
306 !defined(CONFIGURE_SHELL_NO_COMMAND_MMOVE)) || \
307 defined(CONFIGURE_SHELL_COMMAND_MMOVE)
308 &rtems_shell_MMOVE_Command,
309 #endif
310
311 /*
312 * File and directory commands
313 */
314 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
315 !defined(CONFIGURE_SHELL_NO_COMMAND_CP)) || \
316 defined(CONFIGURE_SHELL_COMMAND_CP)
317 &rtems_shell_CP_Command,
318 #endif
319 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
320 !defined(CONFIGURE_SHELL_NO_COMMAND_PWD)) || \
321 defined(CONFIGURE_SHELL_COMMAND_PWD)
322 &rtems_shell_PWD_Command,
323 #endif
324 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
325 !defined(CONFIGURE_SHELL_NO_COMMAND_LS)) || \
326 defined(CONFIGURE_SHELL_COMMAND_LS)
327 &rtems_shell_LS_Command,
328 #endif
329 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
330 !defined(CONFIGURE_SHELL_NO_COMMAND_CHDIR)) || \
331 defined(CONFIGURE_SHELL_COMMAND_CHDIR)
332 &rtems_shell_CHDIR_Command,
333 #endif
334 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
335 !defined(CONFIGURE_SHELL_NO_COMMAND_MKDIR)) || \
336 defined(CONFIGURE_SHELL_COMMAND_MKDIR)
337 &rtems_shell_MKDIR_Command,
338 #endif
339 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
340 !defined(CONFIGURE_SHELL_NO_COMMAND_RMDIR)) || \
341 defined(CONFIGURE_SHELL_COMMAND_RMDIR)
342 &rtems_shell_RMDIR_Command,
343 #endif
344 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
345 !defined(CONFIGURE_SHELL_NO_COMMAND_CHROOT)) || \
346 defined(CONFIGURE_SHELL_COMMAND_CHROOT)
347 &rtems_shell_CHROOT_Command,
348 #endif
349 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
350 !defined(CONFIGURE_SHELL_NO_COMMAND_CHMOD)) || \
351 defined(CONFIGURE_SHELL_COMMAND_CHMOD)
352 &rtems_shell_CHMOD_Command,
353 #endif
354 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
355 !defined(CONFIGURE_SHELL_NO_COMMAND_CAT)) || \
356 defined(CONFIGURE_SHELL_COMMAND_CAT)
357 &rtems_shell_CAT_Command,
358 #endif
359 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
360 !defined(CONFIGURE_SHELL_NO_COMMAND_MKRFS)) || \
361 defined(CONFIGURE_SHELL_COMMAND_MKRFS)
362 &rtems_shell_MKRFS_Command,
363 #endif
364 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
365 !defined(CONFIGURE_SHELL_NO_COMMAND_MSDOSFMT)) || \
366 defined(CONFIGURE_SHELL_COMMAND_MSDOSFMT)
367 &rtems_shell_MSDOSFMT_Command,
368 &rtems_shell_MSDOSFMT_Alias,
369 #endif
370 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
371 !defined(CONFIGURE_SHELL_NO_COMMAND_MV)) || \
372 defined(CONFIGURE_SHELL_COMMAND_MV)
373 &rtems_shell_MV_Command,
374 #endif
375 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
376 !defined(CONFIGURE_SHELL_NO_COMMAND_RM)) || \
377 defined(CONFIGURE_SHELL_COMMAND_RM)
378 &rtems_shell_RM_Command,
379 #endif
380 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
381 !defined(CONFIGURE_SHELL_NO_COMMAND_LN)) || \
382 defined(CONFIGURE_SHELL_COMMAND_LN)
383 &rtems_shell_LN_Command,
384 #endif
385 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
386 !defined(CONFIGURE_SHELL_NO_COMMAND_MKNOD)) || \
387 defined(CONFIGURE_SHELL_COMMAND_MKNOD)
388 &rtems_shell_MKNOD_Command,
389 #endif
390 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
391 !defined(CONFIGURE_SHELL_NO_COMMAND_UMASK)) || \
392 defined(CONFIGURE_SHELL_COMMAND_UMASK)
393 &rtems_shell_UMASK_Command,
394 #endif
395 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
396 !defined(CONFIGURE_SHELL_NO_COMMAND_LSOF)) || \
397 defined(CONFIGURE_SHELL_COMMAND_LSOF)
398 &rtems_shell_LSOF_Command,
399 #endif
400 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
401 !defined(CONFIGURE_SHELL_NO_COMMAND_MOUNT)) || \
402 defined(CONFIGURE_SHELL_COMMAND_MOUNT)
403 &rtems_shell_MOUNT_Command,
404 #endif
405 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
406 !defined(CONFIGURE_SHELL_NO_COMMAND_UNMOUNT)) || \
407 defined(CONFIGURE_SHELL_COMMAND_UNMOUNT)
408 &rtems_shell_UNMOUNT_Command,
409 #endif
410 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
411 !defined(CONFIGURE_SHELL_NO_COMMAND_BLKSYNC)) || \
412 defined(CONFIGURE_SHELL_COMMAND_BLKSYNC)
413 &rtems_shell_BLKSYNC_Command,
414 #endif
415 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
416 !defined(CONFIGURE_SHELL_NO_COMMAND_BLKSTATS)) || \
417 defined(CONFIGURE_SHELL_COMMAND_BLKSTATS)
418 &rtems_shell_BLKSTATS_Command,
419 #endif
420 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
421 !defined(CONFIGURE_SHELL_NO_COMMAND_FDISK)) || \
422 defined(CONFIGURE_SHELL_COMMAND_FDISK)
423 &rtems_shell_FDISK_Command,
424 #endif
425 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
426 !defined(CONFIGURE_SHELL_NO_COMMAND_DD)) || \
427 defined(CONFIGURE_SHELL_COMMAND_DD)
428 &rtems_shell_DD_Command,
429 #endif
430 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
431 !defined(CONFIGURE_SHELL_NO_COMMAND_HEXDUMP)) || \
432 defined(CONFIGURE_SHELL_COMMAND_HEXDUMP)
433 &rtems_shell_HEXDUMP_Command,
434 #endif
435 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
436 !defined(CONFIGURE_SHELL_NO_COMMAND_DEBUGRFS)) || \
437 defined(CONFIGURE_SHELL_COMMAND_DEBUGRFS)
438 &rtems_shell_DEBUGRFS_Command,
439 #endif
440 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
441 !defined(CONFIGURE_SHELL_NO_COMMAND_DF)) || \
442 defined(CONFIGURE_SHELL_COMMAND_DF)
443 &rtems_shell_DF_Command,
444 #endif
445 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
446 !defined(CONFIGURE_SHELL_NO_COMMAND_MD5)) || \
447 defined(CONFIGURE_SHELL_COMMAND_MD5)
448 &rtems_shell_MD5_Command,
449 #endif
450
451 /*
452 * RTEMS Related commands
453 */
454 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
455 !defined(CONFIGURE_SHELL_NO_COMMAND_SHUTDOWN)) || \
456 defined(CONFIGURE_SHELL_COMMAND_SHUTDOWN)
457 &rtems_shell_SHUTDOWN_Command,
458 #endif
459 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
460 !defined(CONFIGURE_SHELL_NO_COMMAND_CPUINFO)) || \
461 defined(CONFIGURE_SHELL_COMMAND_CPUINFO)
462 &rtems_shell_CPUINFO_Command,
463 #endif
464 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
465 !defined(CONFIGURE_SHELL_NO_COMMAND_CPUUSE)) || \
466 defined(CONFIGURE_SHELL_COMMAND_CPUUSE)
467 &rtems_shell_CPUUSE_Command,
468 #endif
469 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
470 !defined(CONFIGURE_SHELL_NO_COMMAND_TOP)) || \
471 defined(CONFIGURE_SHELL_COMMAND_TOP)
472 &rtems_shell_TOP_Command,
473 #endif
474 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
475 !defined(CONFIGURE_SHELL_NO_COMMAND_STACKUSE)) || \
476 defined(CONFIGURE_SHELL_COMMAND_STACKUSE)
477 &rtems_shell_STACKUSE_Command,
478 #endif
479 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
480 !defined(CONFIGURE_SHELL_NO_COMMAND_PERIODUSE)) || \
481 defined(CONFIGURE_SHELL_COMMAND_PERIODUSE)
482 &rtems_shell_PERIODUSE_Command,
483 #endif
484 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
485 !defined(CONFIGURE_SHELL_NO_COMMAND_PROFREPORT)) || \
486 defined(CONFIGURE_SHELL_COMMAND_PROFREPORT)
487 &rtems_shell_PROFREPORT_Command,
488 #endif
489 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
490 !defined(CONFIGURE_SHELL_NO_COMMAND_WKSPACE_INFO)) || \
491 defined(CONFIGURE_SHELL_COMMAND_WKSPACE_INFO)
492 &rtems_shell_WKSPACE_INFO_Command,
493 #endif
494 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
495 !defined(CONFIGURE_SHELL_NO_COMMAND_RTEMS)) || \
496 defined(CONFIGURE_SHELL_COMMAND_RTEMS)
497 &rtems_shell_RTEMS_Command,
498 #endif
499
500 /*
501 * Malloc family commands
502 */
503 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
504 !defined(CONFIGURE_SHELL_NO_COMMAND_MALLOC_INFO)) || \
505 defined(CONFIGURE_SHELL_COMMAND_MALLOC_INFO)
506 &rtems_shell_MALLOC_INFO_Command,
507 #endif
508
509 /*
510 * Tracing family commands
511 */
512 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
513 !defined(CONFIGURE_SHELL_NO_COMMAND_RTRACE)) || \
514 defined(CONFIGURE_SHELL_COMMAND_RTRACE)
515 &rtems_shell_RTRACE_Command,
516 #endif
517
518 /*
519 * Network related commands
520 */
521 #if RTEMS_NETWORKING
522 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \
523 !defined(CONFIGURE_SHELL_NO_COMMAND_IFCONFIG)) || \
524 defined(CONFIGURE_SHELL_COMMAND_IFCONFIG)
525 &rtems_shell_IFCONFIG_Command,
526 #endif
527
528 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \
529 !defined(CONFIGURE_SHELL_NO_COMMAND_ROUTE)) || \
530 defined(CONFIGURE_SHELL_COMMAND_ROUTE)
531 &rtems_shell_ROUTE_Command,
532 #endif
533
534 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \
535 !defined(CONFIGURE_SHELL_NO_COMMAND_NETSTATS)) || \
536 defined(CONFIGURE_SHELL_COMMAND_NETSTATS)
537 &rtems_shell_NETSTATS_Command,
538 #endif
539
540 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \
541 !defined(CONFIGURE_SHELL_NO_COMMAND_PING)) || \
542 defined(CONFIGURE_SHELL_COMMAND_PING)
543 &rtems_shell_PING_Command,
544 #endif
545 #endif
546
547 /* Miscanellous shell commands */
548 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \
549 && !defined(CONFIGURE_SHELL_NO_COMMAND_RTC)) \
550 || defined(CONFIGURE_SHELL_COMMAND_RTC)
551 &rtems_shell_RTC_Command,
552 #endif
553
554 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \
555 && !defined(CONFIGURE_SHELL_NO_COMMAND_SPI)) \
556 || defined(CONFIGURE_SHELL_COMMAND_SPI)
557 &rtems_shell_SPI_Command,
558 #endif
559
560 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \
561 && !defined(CONFIGURE_SHELL_NO_COMMAND_FLASHDEV)) \
562 || defined(CONFIGURE_SHELL_COMMAND_FLASHDEV)
563 &rtems_shell_FLASHDEV_Command,
564 #endif
565
566 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \
567 && !defined(CONFIGURE_SHELL_NO_COMMAND_I2CDETECT)) \
568 || defined(CONFIGURE_SHELL_COMMAND_I2CDETECT)
569 &rtems_shell_I2CDETECT_Command,
570 #endif
571
572 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \
573 && !defined(CONFIGURE_SHELL_NO_COMMAND_I2CGET)) \
574 || defined(CONFIGURE_SHELL_COMMAND_I2CGET)
575 &rtems_shell_I2CGET_Command,
576 #endif
577
578 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \
579 && !defined(CONFIGURE_SHELL_NO_COMMAND_I2CSET)) \
580 || defined(CONFIGURE_SHELL_COMMAND_I2CSET)
581 &rtems_shell_I2CSET_Command,
582 #endif
583
584 /*
585 * System related commands
586 */
587 #if defined(RTEMS_DRVMGR_STARTUP) || defined(CONFIGURE_SHELL_COMMAND_DRVMGR)
588 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
589 !defined(CONFIGURE_SHELL_NO_COMMAND_DRVMGR)) || \
590 defined(CONFIGURE_SHELL_COMMAND_DRVMGR)
591 &rtems_shell_DRVMGR_Command,
592 #endif
593 #endif
594
595 #if defined(RTEMS_PCI_CONFIG_LIB)
596 #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
597 !defined(CONFIGURE_SHELL_NO_COMMAND_PCI)) || \
598 defined(CONFIGURE_SHELL_COMMAND_PCI)
599 &rtems_shell_PCI_Command,
600 #endif
601 #endif
602
603 /*
604 * User defined shell commands
605 */
606 #if defined(CONFIGURE_SHELL_USER_COMMANDS)
607 CONFIGURE_SHELL_USER_COMMANDS,
608 #endif
609 NULL
610 };
611
612#endif
613
614#endif
Instantatiate a New Terminal Shell.
Definition: shell.h:91
Definition: shell.h:79