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

Last change on this file since a2aad55 was a2aad55, checked in by Joel Sherrill <joel.sherrill@…>, on May 1, 2013 at 12:41:56 AM

Remove CVS $

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  BASED UPON SOURCE IN RTEMS, MODIFIED FOR SIMULATOR
3 *
4 *  COPYRIGHT (c) 1989-2013.
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>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#define CHECK_RTEMS_IS_UP() \
22  do { \
23    if ( _System_state_Current != SYSTEM_STATE_UP ) { \
24      fprintf( stderr, "RTEMS is not initialized yet\n" ); \
25      return -1; \
26    } \
27  } while (0)
28
29void PRINT_EXECUTING(void);
30void PRINT_HEIR(void);
31
32struct rtems_shell_topic_tt;
33typedef struct rtems_shell_topic_tt rtems_shell_topic_t;
34
35struct rtems_shell_topic_tt {
36  const char          *topic;
37  rtems_shell_topic_t *next;
38};
39
40extern rtems_shell_cmd_t   * rtems_shell_first_cmd;
41extern rtems_shell_topic_t * rtems_shell_first_topic;
42
43rtems_shell_topic_t * rtems_shell_lookup_topic(const char *topic);
44
45extern rtems_shell_cmd_t *rtems_shell_Initial_commands[];
46extern rtems_shell_alias_t *rtems_shell_Initial_aliases[];
47
48int lookup_task(
49  const char *string,
50  rtems_id   *id
51);
52
53int lookup_semaphore(
54  const char *string,
55  rtems_id   *id
56);
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif
Note: See TracBrowser for help on using the repository browser.