source: rtems/testsuites/mptests/mp14/delay.c @ 7d171454

4.104.114.95
Last change on this file since 7d171454 was 65450c14, checked in by Joel Sherrill <joel.sherrill@…>, on 01/29/08 at 21:52:58

2008-01-29 Joel Sherrill <joel.sherrill@…>

  • mp02/task1.c, mp14/delay.c: Add new Object Services collection. This changed the name of a few previously public but undocumented services and added a some new services.
  • Property mode set to 100644
File size: 767 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#include "system.h"
20
21rtems_timer_service_routine Delayed_send_event(
22  rtems_id  timer_id,
23  void     *ignored
24)
25{
26  rtems_status_code status;
27
28  status = rtems_event_send(
29    Task_id[ rtems_object_id_get_index( timer_id ) ],
30    RTEMS_EVENT_16
31  );
32  fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "rtems_event_send" );
33}
Note: See TracBrowser for help on using the repository browser.