]> rtime.felk.cvut.cz Git - orte.git/blob - orte/examples/rtems-shell/app_def.h
1f5b249de0a0fcd287784dfcb50b5bd06728f2f8
[orte.git] / orte / examples / rtems-shell / app_def.h
1 #ifndef _APP_DEF_H
2 #define _APP_DEF_H
3
4 #ifndef COND_EXTERN
5   #ifdef CONFIGURE_INIT
6     #define COND_EXTERN
7   #else
8     #define COND_EXTERN extern
9   #endif
10 #endif
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 void bad_rtems_status(rtems_status_code status, int fail_level, const char *text);
17
18 static inline
19 void check_rtems_status(rtems_status_code status, int fail_level, const char *text)
20 {
21    if(!rtems_is_status_successful(status))
22      bad_rtems_status(status, fail_level, text);
23 }
24
25 #define TASK_1_PRIORITY     30
26 #define SHELL_TASK_PRIORITY 50
27
28 #ifdef __cplusplus
29 }
30 #endif
31
32 #endif /*_APP_DEF_H*/