summaryrefslogtreecommitdiffstats
path: root/testsuites/mptests/mp14/delay.c
blob: b73700107e00ac937b68a2d156c2af2083e651c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*  Delayed_send_event
 *
 *  This routine is a timer service routine which sends an event to a task.
 *
 *  Input parameters:  NONE
 *
 *  Output parameters:  NONE
 *
 *  COPYRIGHT (c) 1989-2008.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.org/license/LICENSE.
 */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "system.h"

rtems_timer_service_routine Delayed_send_event(
  rtems_id  timer_id,
  void     *id_ptr
)
{
  rtems_status_code status;
  rtems_id          id = *(rtems_id *)id_ptr;

  status = rtems_event_send( id, RTEMS_EVENT_16 );
  fatal_directive_check_status_only(
    status, RTEMS_SUCCESSFUL, "rtems_event_send" );
}