]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - rtems/gw/cangw/app_def.h
79a8a285d04248528966cf76b28531e85c3f9e80
[can-benchmark.git] / rtems / gw / cangw / 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 SHELL_TASK_PRIORITY 50
26
27 #ifdef __cplusplus
28 }
29 #endif
30
31 #endif /*_APP_DEF_H*/