summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spedfsched04/system.h
blob: 93b436757edaea728635fdd3624f1e7472d530e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
 * @file spedfsched04/system.h
 *
 * @brief spedfsched04 example header
 */

/*
 *  COPYRIGHT (c) 1989-2007.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  COPYRIGHT (c) 2016 Kuan-Hsun Chen.
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.com/license/LICENSE.
 */


#include <inttypes.h>
#include <rtems.h>

#include <tmacros.h>

/* function prototypes */

rtems_task Init(
  rtems_task_argument argument
);

rtems_task Task(
  rtems_task_argument argument
);

/*
 *  Keep the names and IDs in global variables so another task can use them.
 */

extern rtems_id   Task_id[ 2 ];         /* array of task ids */
extern rtems_name Task_name[ 2 ];       /* array of task names */
extern uint32_t tick_per_second;        /* time reference */
extern int testnumber;                  /* stop condition */

/* configuration information */

#include <bsp.h> /* for device driver prototypes */

#define CONFIGURE_SCHEDULER_EDF

#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_MICROSECONDS_PER_TICK     1000   // NB: 10 and lower gives system failure for erc32 simulator
#define CONFIGURE_MAXIMUM_TASKS             3
#define CONFIGURE_MAXIMUM_PRIORITY          15
#define CONFIGURE_EXTRA_TASK_STACKS         (20 * RTEMS_MINIMUM_STACK_SIZE)
#define CONFIGURE_MAXIMUM_PERIODS           3

#define CONFIGURE_RTEMS_INIT_TASKS_TABLE

#include <rtems/confdefs.h>


/* end of include file */