source: rtems/testsuites/mptests/mp03/delay.c @ 7eb312d5

4.104.114.95
Last change on this file since 7eb312d5 was a319ebef, checked in by Joel Sherrill <joel.sherrill@…>, on 09/05/08 at 14:41:37

2008-09-05 Joel Sherrill <joel.sherrill@…>

  • mp03/delay.c, mp06/task1.c, mp06/node2/mp06-node2.scn, mp07/task1.c: Updating and fixing while running them on psim.
  • Property mode set to 100644
File size: 781 bytes
Line 
1/*  Delayed_send_event
2 *
3 *  This routine is a timer service routine which sends an event to task 1.
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.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#include "system.h"
20
21rtems_timer_service_routine Delayed_send_event(
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_16 );
29  if ( status ) printk( "Delayed_send_event failed %d\n", status );
30  // directive_failed_with_level( status, "rtems_event_send", 1 );
31}
Note: See TracBrowser for help on using the repository browser.