Last change
on this file since 726b27c was
726b27c,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/13/13 at 17:01:48
|
schedsim: Update to latest RTEMS. Works Uniprocessor
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[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 | #ifndef __SCHEDSIM_SHELL_h |
---|
| 13 | #define __SCHEDSIM_SHELL_h |
---|
| 14 | |
---|
| 15 | #include <rtems.h> |
---|
[726b27c] | 16 | #include <rtems/score/sysstate.h> |
---|
[abb18dc] | 17 | |
---|
| 18 | #ifdef __cplusplus |
---|
| 19 | extern "C" { |
---|
| 20 | #endif |
---|
| 21 | |
---|
| 22 | #define CHECK_RTEMS_IS_UP() \ |
---|
| 23 | do { \ |
---|
| 24 | if ( _System_state_Current != SYSTEM_STATE_UP ) { \ |
---|
| 25 | fprintf( stderr, "RTEMS is not initialized yet\n" ); \ |
---|
| 26 | return -1; \ |
---|
| 27 | } \ |
---|
| 28 | } while (0) |
---|
| 29 | |
---|
| 30 | void PRINT_EXECUTING(void); |
---|
| 31 | void PRINT_HEIR(void); |
---|
| 32 | |
---|
| 33 | struct rtems_shell_topic_tt; |
---|
| 34 | typedef struct rtems_shell_topic_tt rtems_shell_topic_t; |
---|
| 35 | |
---|
| 36 | struct rtems_shell_topic_tt { |
---|
| 37 | const char *topic; |
---|
| 38 | rtems_shell_topic_t *next; |
---|
| 39 | }; |
---|
| 40 | |
---|
| 41 | extern rtems_shell_cmd_t * rtems_shell_first_cmd; |
---|
| 42 | extern rtems_shell_topic_t * rtems_shell_first_topic; |
---|
| 43 | |
---|
| 44 | rtems_shell_topic_t * rtems_shell_lookup_topic(const char *topic); |
---|
| 45 | |
---|
| 46 | extern rtems_shell_cmd_t *rtems_shell_Initial_commands[]; |
---|
| 47 | extern rtems_shell_alias_t *rtems_shell_Initial_aliases[]; |
---|
| 48 | |
---|
| 49 | int lookup_task( |
---|
| 50 | const char *string, |
---|
| 51 | rtems_id *id |
---|
| 52 | ); |
---|
| 53 | |
---|
| 54 | int lookup_semaphore( |
---|
| 55 | const char *string, |
---|
| 56 | rtems_id *id |
---|
| 57 | ); |
---|
| 58 | |
---|
| 59 | #ifdef __cplusplus |
---|
| 60 | } |
---|
| 61 | #endif |
---|
| 62 | |
---|
| 63 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.