source: rtems/testsuites/samples/unlimited/system.h @ 04abc23

4.104.115
Last change on this file since 04abc23 was a0653ada, checked in by Joel Sherrill <joel.sherrill@…>, on 10/13/08 at 19:15:26

2008-10-13 Joel Sherrill <joel.sherrill@…>

  • unlimited/system.h: Tighten configuration for stack space.
  • Property mode set to 100644
File size: 2.2 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-2008.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may in
10 *  the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#include <rtems.h>
17
18/* functions */
19
20rtems_task Init(
21  rtems_task_argument argument
22);
23
24rtems_task test_task(
25  rtems_task_argument my_number
26);
27
28void
29destory_all_tasks(
30  const char *who
31);
32
33bool status_code_bad(
34  rtems_status_code status_code
35);
36
37void test1();
38void test2();
39void test3();
40
41/* configuration information */
42
43#include <bsp.h> /* for device driver prototypes */
44
45/* NOTICE: the clock driver is explicitly disabled */
46#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
47#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
48
49#define CONFIGURE_UNIFIED_WORK_AREAS
50#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
51
52#define TASK_ALLOCATION_SIZE     (5)
53#define CONFIGURE_MAXIMUM_TASKS  rtems_resource_unlimited(TASK_ALLOCATION_SIZE)
54#define CONFIGURE_INIT_TASK_STACK_SIZE (8 * 1024)
55
56
57#include <rtems/confdefs.h>
58
59/*
60 * Keep track of the task id's created, use a large array.
61 */
62
63#define MAX_TASKS         (1000)
64#define TASK_INDEX_OFFSET (1)
65
66extern rtems_id task_id[MAX_TASKS];
67
68/*
69 * Increment the task name.
70 */
71
72#define NEXT_TASK_NAME(c1, c2, c3, c4)  \
73                 if (c4 == '9') {       \
74                   if (c3 == '9') {     \
75                     if (c2 == 'z') {   \
76                       if (c1 == 'z') { \
77                         printf("not enough task letters for names !!!\n"); \
78                         exit( 1 );     \
79                       } else           \
80                         c1++;          \
81                       c2 = 'a';        \
82                     } else             \
83                      c2++;             \
84                     c3 = '0';          \
85                   } else               \
86                     c3++;              \
87                   c4 = '0';            \
88                 }                      \
89                 else                   \
90                   c4++                 \
91
92
93/* end of include file */
Note: See TracBrowser for help on using the repository browser.