source: rtems/testsuites/mptests/mp14/delay.c @ a4bc4d6e

4.115
Last change on this file since a4bc4d6e was a4bc4d6e, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/22/11 at 10:00:39

Add HAVE_CONFIG_H.

  • Property mode set to 100644
File size: 809 bytes
Line 
1/*  Delayed_send_event
2 *
3 *  This routine is a timer service routine which sends an event to a task.
4 *
5 *  Input parameters:  NONE
6 *
7 *  Output parameters:  NONE
8 *
9 *  COPYRIGHT (c) 1989-2008.
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.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifdef HAVE_CONFIG_H
20#include "config.h"
21#endif
22
23#include "system.h"
24
25rtems_timer_service_routine Delayed_send_event(
26  rtems_id  timer_id,
27  void     *id_ptr
28)
29{
30  rtems_status_code status;
31  rtems_id          id = *(rtems_id *)id_ptr;
32
33  status = rtems_event_send( id, RTEMS_EVENT_16 );
34  fatal_directive_check_status_only(
35    status, RTEMS_SUCCESSFUL, "rtems_event_send" );
36}
Note: See TracBrowser for help on using the repository browser.