source: rtems/testsuites/libtests/cpuuse/system.h @ c4b8b147

5
Last change on this file since c4b8b147 was c4b8b147, checked in by Sebastian Huber <sebastian.huber@…>, on 11/03/17 at 07:35:38

tests: Use simple console driver

Update #3170.
Update #3199.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*  system.h
2 *
3 *  This include file contains information that is included in every
4 *  function in the test set.
5 *
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.org/license/LICENSE.
12 */
13
14#include <bsp.h>
15#include <tmacros.h>
16
17/* functions */
18
19rtems_task Init(
20  rtems_task_argument argument
21);
22
23rtems_task Task_1(
24  rtems_task_argument argument
25);
26
27rtems_task Task_2(
28  rtems_task_argument argument
29);
30
31rtems_task Task_3(
32  rtems_task_argument argument
33);
34
35void Task_switch(
36  rtems_tcb *unused,
37  rtems_tcb *heir
38);
39
40/* configuration information */
41
42#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
43#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
44
45#define CONFIGURE_MAXIMUM_USER_EXTENSIONS     1
46#define CONFIGURE_MAXIMUM_TASKS               4
47#define CONFIGURE_TICKS_PER_TIMESLICE       100
48
49#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
50
51#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
52
53#define CONFIGURE_DISABLE_SMP_CONFIGURATION
54
55#include <rtems/confdefs.h>
56
57/* global variables */
58
59TEST_EXTERN rtems_id   Task_id[ 4 ];         /* array of task ids */
60TEST_EXTERN rtems_name Task_name[ 4 ];       /* array of task names */
61
62TEST_EXTERN rtems_id   Extension_id[ 4 ];
63TEST_EXTERN rtems_name Extension_name[ 4 ];  /* array of task names */
64
65/* array of task run counts */
66TEST_EXTERN volatile uint32_t   Run_count[ 4 ];
67
68/*
69 * Keep track of task switches
70 */
71
72struct taskSwitchLog {
73  int               taskIndex;
74  rtems_time_of_day when;
75};
76
77extern struct taskSwitchLog taskSwitchLog[];
78extern int taskSwitchLogIndex;
79volatile extern int testsFinished;
80
81
82/* end of include file */
Note: See TracBrowser for help on using the repository browser.