OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [tests/] [sptests/] [sp11/] [timer.c] - Blame information for rev 543

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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-1999.
10
 *  On-Line Applications Research Corporation (OAR).
11
 *
12
 *  The license and distribution terms for this file may be
13
 *  found in the file LICENSE in this distribution or at
14
 *  http://www.OARcorp.com/rtems/license.html.
15
 *
16
 *  $Id: timer.c,v 1.2 2001-09-27 12:02:32 chris Exp $
17
 */
18
 
19
#include "system.h"
20
 
21
rtems_timer_service_routine TA1_send_18_to_self_5_seconds(
22
  rtems_id  ignored_id,
23
  void     *ignored_address
24
)
25
{
26
  rtems_status_code status;
27
 
28
  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_18 );
29
  directive_failed_with_level( status, "rtems_event_send of 18", 1 );
30
}
31
 
32
rtems_timer_service_routine TA1_send_8_to_self_60_seconds(
33
  rtems_id  ignored_id,
34
  void     *ignored_address
35
)
36
{
37
  rtems_status_code status;
38
 
39
  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_8 );
40
  directive_failed_with_level( status, "rtems_event_send of 8", 1 );
41
}
42
 
43
rtems_timer_service_routine TA1_send_9_to_self_60_seconds(
44
  rtems_id  ignored_id,
45
  void     *ignored_address
46
)
47
{
48
  rtems_status_code status;
49
 
50
  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_9 );
51
  directive_failed_with_level( status, "rtems_event_send of 9", 1 );
52
}
53
 
54
rtems_timer_service_routine TA1_send_10_to_self(
55
  rtems_id  ignored_id,
56
  void     *ignored_address
57
)
58
{
59
  rtems_status_code status;
60
 
61
  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_10 );
62
  directive_failed_with_level( status, "rtems_event_send of 10", -1 );
63
}
64
 
65
rtems_timer_service_routine TA1_send_1_to_self_every_second(
66
  rtems_id  ignored_id,
67
  void     *ignored_address
68
)
69
{
70
  rtems_status_code status;
71
 
72
  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_1 );
73
  directive_failed_with_level( status, "rtems_event_send of 1", 1 );
74
}
75
 
76
rtems_timer_service_routine TA1_send_11_to_self(
77
  rtems_id  ignored_id,
78
  void     *ignored_address
79
)
80
{
81
  rtems_status_code status;
82
 
83
  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_11 );
84
  directive_failed_with_level( status, "rtems_event_send of 11", -1 );
85
}
86
 
87
rtems_timer_service_routine TA2_send_10_to_self(
88
  rtems_id  ignored_id,
89
  void     *ignored_address
90
)
91
{
92
  rtems_status_code status;
93
 
94
  status = rtems_event_send( Task_id[ 2 ], RTEMS_EVENT_10 );
95
  directive_failed_with_level( status, "rtems_event_send of 10", 1 );
96
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.