ada-examples-4-10-branch
ada-examples-4-10-2
Last change
on this file was
004230a,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/17/09 at 18:13:39
|
2009-09-17 Joel Sherrill <joel.sherrill@…>
- Makefile, empty.c, task_priority.adb: Make follow standard RTEMS test
output format. Add output screens where appropriate.
- task_priority.scn: New file.
|
-
Property mode set to
100644
|
File size:
311 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | #if defined(__rtems__) |
---|
6 | #include <rtems.h> |
---|
7 | #endif |
---|
8 | |
---|
9 | int getPriority() |
---|
10 | { |
---|
11 | #if defined(__rtems__) |
---|
12 | printk( "ID=0x%08x ", _Thread_Executing->Object.id ); |
---|
13 | |
---|
14 | return (int)_Thread_Executing->current_priority; |
---|
15 | #endif |
---|
16 | return 0; |
---|
17 | } |
---|
18 | |
---|
19 | void empty() |
---|
20 | { |
---|
21 | #if defined(__rtems__) |
---|
22 | // printk("."); |
---|
23 | #endif |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.