source: rtems/testsuites/sptests/sp11/timer.c @ c64e4ed4

4.104.114.84.95
Last change on this file since c64e4ed4 was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on 05/11/95 at 17:39:37

Initial revision

  • Property mode set to 100644
File size: 2.3 KB
Line 
1/*  Timer_functions
2 *
3 *  These routines are the timer service routines used by this test.
4 *
5 *  Input parameters:  NONE
6 *
7 *  Output parameters:  NONE
8 *
9 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
10 *  On-Line Applications Research Corporation (OAR).
11 *  All rights assigned to U.S. Government, 1994.
12 *
13 *  This material may be reproduced by or for the U.S. Government pursuant
14 *  to the copyright license under the clause at DFARS 252.227-7013.  This
15 *  notice must appear in all copies of this file and its derivatives.
16 *
17 *  $Id$
18 */
19
20#include "system.h"
21
22rtems_timer_service_routine TA1_send_18_to_self_5_seconds(
23  rtems_id  ignored_id,
24  void     *ignored_address
25)
26{
27  rtems_status_code status;
28
29  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_18 );
30  directive_failed( status, "rtems_event_send of 18" );
31}
32
33rtems_timer_service_routine TA1_send_8_to_self_60_seconds(
34  rtems_id  ignored_id,
35  void     *ignored_address
36)
37{
38  rtems_status_code status;
39
40  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_8 );
41  directive_failed( status, "rtems_event_send of 8" );
42}
43
44rtems_timer_service_routine TA1_send_9_to_self_60_seconds(
45  rtems_id  ignored_id,
46  void     *ignored_address
47)
48{
49  rtems_status_code status;
50
51  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_9 );
52  directive_failed( status, "rtems_event_send of 9" );
53}
54
55rtems_timer_service_routine TA1_send_10_to_self(
56  rtems_id  ignored_id,
57  void     *ignored_address
58)
59{
60  rtems_status_code status;
61
62  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_10 );
63  directive_failed( status, "rtems_event_send of 10" );
64}
65
66rtems_timer_service_routine TA1_send_1_to_self_every_second(
67  rtems_id  ignored_id,
68  void     *ignored_address
69)
70{
71  rtems_status_code status;
72
73  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_1 );
74  directive_failed( status, "rtems_event_send of 1" );
75}
76
77rtems_timer_service_routine TA1_send_11_to_self(
78  rtems_id  ignored_id,
79  void     *ignored_address
80)
81{
82  rtems_status_code status;
83
84  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_11 );
85  directive_failed( status, "rtems_event_send of 11" );
86}
87
88rtems_timer_service_routine TA2_send_10_to_self(
89  rtems_id  ignored_id,
90  void     *ignored_address
91)
92{
93  rtems_status_code status;
94
95  status = rtems_event_send( Task_id[ 2 ], RTEMS_EVENT_10 );
96  directive_failed( status, "rtems_event_send of 10" );
97}
Note: See TracBrowser for help on using the repository browser.