]> rtime.felk.cvut.cz Git - rtems-devel.git/blob - rtems-omk-template/appfoo/app_def.h
OMK template example applications print APP_VER_ID instead of common SW_VER_ID.
[rtems-devel.git] / rtems-omk-template / appfoo / 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 #define APP_VER_ID  "appfoo"
17
18 COND_EXTERN rtems_id   Task_1_id;           /* Task 1 id */
19 COND_EXTERN rtems_name Task_1_name;         /* Task 1 name */
20
21 rtems_task Task_1(
22   rtems_task_argument argument
23 );
24
25 void bad_rtems_status(rtems_status_code status, int fail_level, const char *text);
26
27 static inline
28 void check_rtems_status(rtems_status_code status, int fail_level, const char *text)
29 {
30    if(!rtems_is_status_successful(status))
31      bad_rtems_status(status, fail_level, text);
32 }
33
34 #define TASK_1_PRIORITY     30
35 #define SHELL_TASK_PRIORITY 50
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif /*_APP_DEF_H*/