source: rtems/testsuites/smptests/smp03/system.h @ cf2024b

5
Last change on this file since cf2024b was cf2024b, checked in by Sebastian Huber <sebastian.huber@…>, on 01/19/18 at 12:08:46

smp03: Use floating-point tasks

This test uses sprintf().

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2011.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#include "tmacros.h"
11#include "test_support.h"
12
13/* functions */
14
15rtems_task Init(
16  rtems_task_argument argument
17);
18
19rtems_task Test_task(
20  rtems_task_argument argument
21);
22
23/* configuration information */
24
25#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
26#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
27
28#define CONFIGURE_MAXIMUM_PROCESSORS   4
29
30#define CONFIGURE_MAXIMUM_TASKS            \
31    (1 + CONFIGURE_MAXIMUM_PROCESSORS)
32
33#define CONFIGURE_MAXIMUM_SEMAPHORES 1
34
35#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
36
37#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
38#define CONFIGURE_INIT_TASK_STACK_SIZE \
39    (3 * CONFIGURE_MINIMUM_TASK_STACK_SIZE)
40
41#define CONFIGURE_INIT_TASK_PRIORITY        5
42#define CONFIGURE_INIT_TASK_INITIAL_MODES   RTEMS_PREEMPT
43
44#include <rtems/confdefs.h>
45
46
47/* global variables */
48
49/*
50 *  Keep the names and IDs in global variables so another task can use them.
51 */
52
53TEST_EXTERN volatile bool TaskRan[ CONFIGURE_MAXIMUM_PROCESSORS + 1 ];
54
55/*
56 *  Keep the names and IDs in global variables so another task can use them.
57 */
58void Loop(void);
59void PrintTaskInfo(
60  const char *task_name
61);
62
63TEST_EXTERN volatile bool  TestFinished;
64
65/*
66 *  Handy macros and static inline functions
67 */
68
69/*
70 *  Macro to hide the ugliness of printing the time.
71 */
72
73/* end of include file */
Note: See TracBrowser for help on using the repository browser.