]> rtime.felk.cvut.cz Git - rtems-devel.git/blobdiff - rtems-tests/prioinh_posix/app_def.h
Portable version of priority inheritance check (Posix API based).
[rtems-devel.git] / rtems-tests / prioinh_posix / app_def.h
diff --git a/rtems-tests/prioinh_posix/app_def.h b/rtems-tests/prioinh_posix/app_def.h
new file mode 100644 (file)
index 0000000..c900ba4
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef _APP_DEF_H
+#define _APP_DEF_H
+
+#ifndef COND_EXTERN
+  #ifdef CONFIGURE_INIT
+    #define COND_EXTERN
+  #else
+    #define COND_EXTERN extern
+  #endif
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* Posix style startup task */
+void *Task_1(void *argument);
+
+#define SHELL_TASK_PRIORITY 14
+#define TASK_HI_PRIORITY    13
+#define TASK_MID_PRIORITY   12
+#define TASK_1_PRIORITY     11
+#define TASK_LO_PRIORITY    10
+
+void bad_status(int status, int fail_level, const char *text);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /*_APP_DEF_H*/