source: rtems/testsuites/samples/capture/system.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • 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-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
11 *  http://www.rtems.com/license/LICENSE.
12 */
13
14#include <rtems.h>
15
16/* functions */
17
18rtems_task Init(
19  rtems_task_argument argument
20);
21
22rtems_task test_task(
23  rtems_task_argument my_number
24);
25
26void
27destory_all_tasks(
28  const char *who
29);
30
31bool status_code_bad(
32  rtems_status_code status_code
33);
34
35extern void setup_tasks_to_watch(void);
36
37/* configuration information */
38
39#include <bsp.h> /* for device driver prototypes */
40
41#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
42#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
43
44#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
45
46#define TASK_ALLOCATION_SIZE     (5)
47#define CONFIGURE_MAXIMUM_TASKS  rtems_resource_unlimited(TASK_ALLOCATION_SIZE)
48#define CONFIGURE_EXTRA_TASK_STACKS (75 * RTEMS_MINIMUM_STACK_SIZE)
49
50#define CONFIGURE_MAXIMUM_USER_EXTENSIONS (5)
51
52#include <rtems/confdefs.h>
53
54/*
55 * Keep track of the task id's created, use a large array.
56 */
57
58#define MAX_TASKS         (1000)
59#define TASK_INDEX_OFFSET (1)
60
61extern rtems_id task_id[MAX_TASKS];
62
63/*
64 * Increment the task name.
65 */
66
67#define NEXT_TASK_NAME(c1, c2, c3, c4)  \
68                 if (c4 == '9') {       \
69                   if (c3 == '9') {     \
70                     if (c2 == 'z') {   \
71                       if (c1 == 'z') { \
72                         printf("not enough task letters for names !!!\n"); \
73                         exit( 1 );     \
74                       } else           \
75                         c1++;          \
76                       c2 = 'a';        \
77                     } else             \
78                      c2++;             \
79                     c3 = '0';          \
80                   } else               \
81                     c3++;              \
82                   c4 = '0';            \
83                 }                      \
84                 else                   \
85                   c4++                 \
86
87
88/* end of include file */
Note: See TracBrowser for help on using the repository browser.