[abb18dc] | 1 | /* |
---|
| 2 | * BASED UPON SOURCE IN RTEMS, MODIFIED FOR SIMULATOR |
---|
| 3 | * |
---|
[a2aad55] | 4 | * COPYRIGHT (c) 1989-2013. |
---|
[abb18dc] | 5 | * On-Line Applications Research Corporation (OAR). |
---|
| 6 | * |
---|
| 7 | * The license and distribution terms for this file may be |
---|
| 8 | * found in the file LICENSE in this distribution or at |
---|
| 9 | * http://www.rtems.com/license/LICENSE. |
---|
| 10 | */ |
---|
| 11 | |
---|
| 12 | #include "shell.h" |
---|
| 13 | #include <stdio.h> |
---|
| 14 | |
---|
| 15 | extern rtems_shell_cmd_t rtems_shell_ECHO_Command; |
---|
| 16 | extern rtems_shell_cmd_t rtems_shell_HELP_Command; |
---|
| 17 | |
---|
| 18 | extern rtems_shell_cmd_t rtems_shell_RTEMS_INIT_Command; |
---|
| 19 | extern rtems_shell_cmd_t rtems_shell_TASK_CREATE_Command; |
---|
| 20 | extern rtems_shell_cmd_t rtems_shell_TASK_DELETE_Command; |
---|
| 21 | extern rtems_shell_cmd_t rtems_shell_TASK_MODE_Command; |
---|
| 22 | extern rtems_shell_cmd_t rtems_shell_TASK_PRIORITY_Command; |
---|
| 23 | extern rtems_shell_cmd_t rtems_shell_TASK_SUSPEND_Command; |
---|
| 24 | extern rtems_shell_cmd_t rtems_shell_TASK_RESUME_Command; |
---|
| 25 | extern rtems_shell_cmd_t rtems_shell_TASK_WAKE_AFTER_Command; |
---|
[156cb91] | 26 | #if RTEMS_SMP |
---|
| 27 | extern rtems_shell_cmd_t rtems_shell_TASK_GET_AFFINITY_Command; |
---|
| 28 | extern rtems_shell_cmd_t rtems_shell_TASK_SET_AFFINITY_Command; |
---|
| 29 | #endif |
---|
[abb18dc] | 30 | |
---|
| 31 | extern rtems_shell_cmd_t rtems_shell_CLOCK_TICK_Command; |
---|
| 32 | |
---|
| 33 | extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_CREATE_Command; |
---|
| 34 | extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_DELETE_Command; |
---|
| 35 | extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_OBTAIN_Command; |
---|
| 36 | extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_RELEASE_Command; |
---|
| 37 | extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_FLUSH_Command; |
---|
| 38 | |
---|
| 39 | extern rtems_shell_cmd_t rtems_shell_TASK_EXECUTING_Command; |
---|
| 40 | extern rtems_shell_cmd_t rtems_shell_TASK_HEIR_Command; |
---|
[cc1a54a] | 41 | extern rtems_shell_cmd_t rtems_shell_CPUS_Command; |
---|
[abb18dc] | 42 | |
---|
| 43 | rtems_shell_cmd_t *rtems_shell_Initial_commands[] = { |
---|
| 44 | /* Generic Commands */ |
---|
| 45 | &rtems_shell_ECHO_Command, |
---|
| 46 | &rtems_shell_HELP_Command, |
---|
| 47 | |
---|
| 48 | /* RTEMS Classic API Type Commands */ |
---|
| 49 | &rtems_shell_RTEMS_INIT_Command, |
---|
| 50 | &rtems_shell_TASK_CREATE_Command, |
---|
| 51 | &rtems_shell_TASK_DELETE_Command, |
---|
| 52 | &rtems_shell_TASK_MODE_Command, |
---|
| 53 | &rtems_shell_TASK_PRIORITY_Command, |
---|
| 54 | &rtems_shell_TASK_SUSPEND_Command, |
---|
| 55 | &rtems_shell_TASK_RESUME_Command, |
---|
| 56 | &rtems_shell_TASK_WAKE_AFTER_Command, |
---|
[156cb91] | 57 | #if RTEMS_SMP |
---|
| 58 | &rtems_shell_TASK_GET_AFFINITY_Command, |
---|
| 59 | &rtems_shell_TASK_SET_AFFINITY_Command, |
---|
| 60 | #endif |
---|
[abb18dc] | 61 | |
---|
| 62 | &rtems_shell_CLOCK_TICK_Command, |
---|
| 63 | |
---|
| 64 | &rtems_shell_SEMAPHORE_CREATE_Command, |
---|
| 65 | &rtems_shell_SEMAPHORE_DELETE_Command, |
---|
| 66 | &rtems_shell_SEMAPHORE_OBTAIN_Command, |
---|
| 67 | &rtems_shell_SEMAPHORE_RELEASE_Command, |
---|
| 68 | &rtems_shell_SEMAPHORE_FLUSH_Command, |
---|
| 69 | |
---|
| 70 | /* RTEMS Helper Commands */ |
---|
| 71 | &rtems_shell_TASK_EXECUTING_Command, |
---|
| 72 | &rtems_shell_TASK_HEIR_Command, |
---|
[cc1a54a] | 73 | &rtems_shell_CPUS_Command, |
---|
[abb18dc] | 74 | NULL |
---|
| 75 | }; |
---|
| 76 | |
---|
| 77 | rtems_shell_alias_t *rtems_shell_Initial_aliases[] = { |
---|
| 78 | NULL |
---|
| 79 | }; |
---|