diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-02-06 18:09:50 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-02-06 18:09:50 +0000 |
commit | 84c019f33ef0b3cfb1fda7c50e459d933f3039fe (patch) | |
tree | 216e7b2b76287894baee72d20e9ae0f43fd211ef /task_priority/empty.c | |
parent | e72d576583d98c78aa80656c8ac0d76e1daf192f (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.c | 20 |
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 +} |