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-1997. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * Copyright assigned to U.S. Government, 1994. |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may in |
---|
14 | * the file LICENSE in this distribution or at |
---|
15 | * http://www.OARcorp.com/rtems/license.html. |
---|
16 | * |
---|
17 | * $Id$ |
---|
18 | */ |
---|
19 | |
---|
20 | #include "system.h" |
---|
21 | |
---|
22 | rtems_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 | |
---|
33 | rtems_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 | |
---|
44 | rtems_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 | |
---|
55 | rtems_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 | |
---|
66 | rtems_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 | |
---|
77 | rtems_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 | |
---|
88 | rtems_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 | } |
---|