source: rtems/testsuites/samples/ticker/system.h @ 840ae71

4.115
Last change on this file since 840ae71 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: 1.7 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-2009.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 */
13
14#include <rtems.h>
15#include <inttypes.h>
16#include "tmacros.h"
17
18/* functions */
19
20rtems_task Init(
21  rtems_task_argument argument
22);
23
24rtems_task Test_task(
25  rtems_task_argument argument
26);
27
28/* global variables */
29
30/*
31 *  Keep the names and IDs in global variables so another task can use them.
32 */
33
34extern rtems_id   Task_id[ 4 ];         /* array of task ids */
35extern rtems_name Task_name[ 4 ];       /* array of task names */
36
37
38/* configuration information */
39
40#include <bsp.h> /* for device driver prototypes */
41
42#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
43#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
44
45#define CONFIGURE_MAXIMUM_TASKS             4
46
47#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
48
49#define CONFIGURE_EXTRA_TASK_STACKS         (3 * RTEMS_MINIMUM_STACK_SIZE)
50
51#include <rtems/confdefs.h>
52
53/*
54 *  This allows us to view the "Test_task" instantiations as a set
55 *  of numbered tasks by eliminating the number of application
56 *  tasks created.
57 *
58 *  In reality, this is too complex for the purposes of this
59 *  example.  It would have been easier to pass a task argument. :)
60 *  But it shows how rtems_id's can sometimes be used.
61 */
62
63#define task_number( tid ) \
64  ( rtems_object_id_get_index( tid ) - \
65      rtems_configuration_get_rtems_api_configuration()-> \
66        number_of_initialization_tasks )
67
68/* end of include file */
Note: See TracBrowser for help on using the repository browser.