4.115
Last change
on this file since cdf30f05 was
c499856,
checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47
|
Change all references of rtems.com to rtems.org.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /* Application_task |
---|
2 | * |
---|
3 | * This routine is as an example of an application task which |
---|
4 | * prints a message including its RTEMS task id. This task |
---|
5 | * then invokes exit to return to the monitor. |
---|
6 | * |
---|
7 | * Input parameters: |
---|
8 | * node - processor's node number |
---|
9 | * |
---|
10 | * Output parameters: NONE |
---|
11 | * |
---|
12 | * COPYRIGHT (c) 1989-1999. |
---|
13 | * On-Line Applications Research Corporation (OAR). |
---|
14 | * |
---|
15 | * The license and distribution terms for this file may be |
---|
16 | * found in the file LICENSE in this distribution or at |
---|
17 | * http://www.rtems.org/license/LICENSE. |
---|
18 | */ |
---|
19 | |
---|
20 | #ifdef HAVE_CONFIG_H |
---|
21 | #include "config.h" |
---|
22 | #endif |
---|
23 | |
---|
24 | #include "system.h" |
---|
25 | #include <stdio.h> |
---|
26 | #include <stdlib.h> |
---|
27 | |
---|
28 | #include "tmacros.h" |
---|
29 | |
---|
30 | rtems_task Application_task( |
---|
31 | rtems_task_argument node |
---|
32 | ) |
---|
33 | { |
---|
34 | rtems_id tid; |
---|
35 | rtems_status_code status; |
---|
36 | |
---|
37 | status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid ); |
---|
38 | printf( "This task was invoked with the node argument (%" PRIdrtems_task_argument ")\n", node ); |
---|
39 | printf( "This task has the id of 0x%" PRIxrtems_id "\n", tid ); |
---|
40 | TEST_END(); |
---|
41 | exit( 0 ); |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.