source: rtems/testsuites/samples/unlimited/system.h @ a645637

4.104.114.95
Last change on this file since a645637 was a645637, checked in by Joel Sherrill <joel.sherrill@…>, on 04/17/08 at 22:46:15

2008-04-17 Joel Sherrill <joel.sherrill@…>

  • fileio/init.c, hello/system.h, minimum/init.c, unlimited/system.h: Use CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER where needed.
  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[f4a8ee1]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-1997.
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
[3e26377b]11 *  http://www.rtems.com/license/LICENSE.
[f4a8ee1]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
33boolean status_code_bad(
34  rtems_status_code status_code
35);
36
37void test1();
38void test2();
39void test3();
40
41/* configuration information */
42
[df49c60]43#include <bsp.h> /* for device driver prototypes */
44
[a645637]45/* NOTICE: the clock driver is explicitly disabled */
46#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
[df49c60]47#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
[f4a8ee1]48
49#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
50
[7ab11c0]51#define TASK_ALLOCATION_SIZE     (5)
[f59df6b2]52#define CONFIGURE_MAXIMUM_TASKS  rtems_resource_unlimited(TASK_ALLOCATION_SIZE)
[c5083aab]53#define CONFIGURE_EXTRA_TASK_STACKS (75 * RTEMS_MINIMUM_STACK_SIZE)
[f59df6b2]54
55
[c8fea7a]56#include <rtems/confdefs.h>
[f4a8ee1]57
58/*
59 * Keep track of the task id's created, use a large array.
60 */
61
62#define MAX_TASKS         (1000)
63#define TASK_INDEX_OFFSET (1)
64
65extern rtems_id task_id[MAX_TASKS];
66
67/*
68 * Increment the task name.
69 */
70
71#define NEXT_TASK_NAME(c1, c2, c3, c4)  \
72                 if (c4 == '9') {       \
73                   if (c3 == '9') {     \
74                     if (c2 == 'z') {   \
75                       if (c1 == 'z') { \
76                         printf("not enough task letters for names !!!\n"); \
77                         exit( 1 );     \
78                       } else           \
79                         c1++;          \
80                       c2 = 'a';        \
81                     } else             \
82                      c2++;             \
83                     c3 = '0';          \
84                   } else               \
85                     c3++;              \
86                   c4 = '0';            \
87                 }                      \
88                 else                   \
89                   c4++                 \
90
91
92/* end of include file */
Note: See TracBrowser for help on using the repository browser.