summaryrefslogtreecommitdiff
path: root/task_priority/empty.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-06 18:09:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-06 18:09:50 +0000
commit84c019f33ef0b3cfb1fda7c50e459d933f3039fe (patch)
tree216e7b2b76287894baee72d20e9ae0f43fd211ef /task_priority/empty.c
parente72d576583d98c78aa80656c8ac0d76e1daf192f (diff)
2008-02-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* ChangeLog, Makefile, empty.c, task_priority.adb: New files.
Diffstat (limited to 'task_priority/empty.c')
-rw-r--r--task_priority/empty.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/task_priority/empty.c b/task_priority/empty.c
new file mode 100644
index 0000000..b5413c2
--- /dev/null
+++ b/task_priority/empty.c
@@ -0,0 +1,20 @@
+#if defined(__rtems__)
+#include <rtems.h>
+#endif
+
+int getPriority()
+{
+#if defined(__rtems__)
+ printk( "ID=0x%08x\n", _Thread_Executing->Object.id );
+
+ return (int)_Thread_Executing->current_priority;
+#endif
+ return 0;
+}
+
+void empty()
+{
+ #if defined(__rtems__)
+ // printk(".");
+ #endif
+}