forked from Imagelibrary/rtems
then sta_tsk used to restart the task to its initial state. + Added calls to ref_tsk to yellow paths for suspended and ready but not running tasks. + Fixed output file to correctly state test name + Added priority of preempt to the header file. Allows ref_tsk verification.
48 lines
1.0 KiB
C
48 lines
1.0 KiB
C
/* system.h
|
|
*
|
|
* This include file contains information that is included in every
|
|
* function in the test set.
|
|
*
|
|
* COPYRIGHT (c) 1989-1998.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
* Copyright assigned to U.S. Government, 1994.
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.OARcorp.com/rtems/license.html.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#include <tmacros.h>
|
|
#include <itron.h>
|
|
|
|
/* functions */
|
|
|
|
void ITRON_Init( void );
|
|
void Preempt_task();
|
|
void Task_1();
|
|
void Task_2();
|
|
void Task_3();
|
|
|
|
/* configuration information */
|
|
|
|
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
|
|
#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
|
|
#define CONFIGURE_ITRON_INIT_TASK_TABLE
|
|
|
|
#include <confdefs.h>
|
|
|
|
/* global variables */
|
|
|
|
#define PREEMPT_TASK_ID 2
|
|
#define TA1_ID 3
|
|
#define TA2_ID 4
|
|
#define TA3_ID 5
|
|
|
|
|
|
#define PREEMPT_PRIORITY 1
|
|
TEST_EXTERN rtems_id Global_variable; /* example global variable */
|
|
|
|
/* end of include file */
|