4.115
Last change
on this file since c499856 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.1 KB
|
Line | |
---|
1 | /** |
---|
2 | * COPYRIGHT (c) 1989-2012. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.org/license/LICENSE. |
---|
8 | */ |
---|
9 | |
---|
10 | #ifdef HAVE_CONFIG_H |
---|
11 | #include "config.h" |
---|
12 | #endif |
---|
13 | |
---|
14 | #define CONFIGURE_INIT |
---|
15 | #include "system.h" |
---|
16 | #include <stdio.h> |
---|
17 | |
---|
18 | /* forward declarations to avoid warnings */ |
---|
19 | rtems_task Init(rtems_task_argument argument); |
---|
20 | |
---|
21 | const char rtems_test_name[] = "SAMPLE MULTIPROCESSOR APPLICATION"; |
---|
22 | |
---|
23 | rtems_task Init( |
---|
24 | rtems_task_argument argument |
---|
25 | ) |
---|
26 | { |
---|
27 | rtems_name task_name; |
---|
28 | rtems_id tid; |
---|
29 | rtems_status_code status; |
---|
30 | |
---|
31 | TEST_BEGIN(); |
---|
32 | printf( "Creating and starting an application task\n" ); |
---|
33 | task_name = rtems_build_name( 'T', 'A', '1', ' ' ); |
---|
34 | status = rtems_task_create( task_name, 1, RTEMS_MINIMUM_STACK_SIZE, |
---|
35 | RTEMS_INTERRUPT_LEVEL(0), RTEMS_DEFAULT_ATTRIBUTES, &tid ); |
---|
36 | status = rtems_task_start( |
---|
37 | tid, |
---|
38 | Application_task, |
---|
39 | Multiprocessing_configuration.node |
---|
40 | ); |
---|
41 | status = rtems_task_delete( RTEMS_SELF ); |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.