4.104.115
Line | |
---|
1 | /* Task_1 |
---|
2 | * |
---|
3 | * This routine serves as a test task. It verifies the task manager. |
---|
4 | * |
---|
5 | * Input parameters: |
---|
6 | * argument - task argument |
---|
7 | * |
---|
8 | * Output parameters: NONE |
---|
9 | * |
---|
10 | * COPYRIGHT (c) 1989-1999. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.com/license/LICENSE. |
---|
16 | * |
---|
17 | * $Id$ |
---|
18 | */ |
---|
19 | |
---|
20 | #include "system.h" |
---|
21 | |
---|
22 | /* |
---|
23 | * XXX - This test requires tasks to suspend self, yet ITRON defines |
---|
24 | * this as an error. |
---|
25 | */ |
---|
26 | |
---|
27 | void Task_1() |
---|
28 | { |
---|
29 | rtems_status_code status; |
---|
30 | |
---|
31 | while (1) { |
---|
32 | |
---|
33 | puts( "TA2 - rtems_task_suspend RTEMS_SELF" ); |
---|
34 | status = rtems_task_suspend( RTEMS_SELF ); |
---|
35 | directive_failed( status, "TA2 rtems_task_suspend RTEMS_SELF" ); |
---|
36 | |
---|
37 | } |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.