summaryrefslogtreecommitdiffstats
path: root/c/src/tests/itrontests/itrontask02/system.h
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-15 21:19:58 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-15 21:19:58 +0000
commit0f88857a3a0793cb494a40cc61954e2f01ef0ef8 (patch)
tree5f0078a5e83cd304ebd5b4930ea0b9817d34f4c3 /c/src/tests/itrontests/itrontask02/system.h
parentAdded paragraph describing SUSP. (diff)
downloadrtems-0f88857a3a0793cb494a40cc61954e2f01ef0ef8.tar.bz2
+ Changed preempt routine into two dummy tasks one that is in dormant
state and one that is in non-dormant state. + Increased the priority of the Init task to force the dummy tasks to run first. + Added calls to ref_tsk to verify the state of the dummy tasks and test ref_tsk.
Diffstat (limited to '')
-rw-r--r--c/src/tests/itrontests/itrontask02/system.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/c/src/tests/itrontests/itrontask02/system.h b/c/src/tests/itrontests/itrontask02/system.h
index daad15c340..f9358a9517 100644
--- a/c/src/tests/itrontests/itrontask02/system.h
+++ b/c/src/tests/itrontests/itrontask02/system.h
@@ -20,7 +20,8 @@
/* functions */
void ITRON_Init( void );
-void Preempt_task();
+void Dormant_task();
+void Non_Dormant_task();
/* configuration information */
@@ -31,7 +32,8 @@ void Preempt_task();
/* global variables */
-#define PREEMPT_TASK_ID 2
+#define DORMANT_TASK_ID 2
+#define NON_DORMANT_TASK_ID 3
TEST_EXTERN rtems_id Global_variable; /* example global variable */