source: rtems-schedsim/schedsim/shell/shared/schedsim_shell.h @ 726b27c

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
RevLine 
[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
19extern "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
30void PRINT_EXECUTING(void);
31void PRINT_HEIR(void);
32
33struct rtems_shell_topic_tt;
34typedef struct rtems_shell_topic_tt rtems_shell_topic_t;
35
36struct rtems_shell_topic_tt {
37  const char          *topic;
38  rtems_shell_topic_t *next;
39};
40
41extern rtems_shell_cmd_t   * rtems_shell_first_cmd;
42extern rtems_shell_topic_t * rtems_shell_first_topic;
43
44rtems_shell_topic_t * rtems_shell_lookup_topic(const char *topic);
45
46extern rtems_shell_cmd_t *rtems_shell_Initial_commands[];
47extern rtems_shell_alias_t *rtems_shell_Initial_aliases[];
48
49int lookup_task(
50  const char *string,
51  rtems_id   *id
52);
53
54int 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.