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