source:
rtems/testsuites/mptests/mp14/delay.c
@
f68401e
Last change on this file since f68401e was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24 | |
---|---|
|
|
File size: 797 bytes |
Rev | Line | |
---|---|---|
[ac7d5ef0] | 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 | * | |
[65450c14] | 9 | * COPYRIGHT (c) 1989-2008. |
[ac7d5ef0] | 10 | * On-Line Applications Research Corporation (OAR). |
11 | * | |
[98e4ebf5] | 12 | * The license and distribution terms for this file may be |
13 | * found in the file LICENSE in this distribution or at | |
[d7a0857] | 14 | * http://www.rtems.com/license/LICENSE. |
[ac7d5ef0] | 15 | */ |
16 | ||
[a4bc4d6e] | 17 | #ifdef HAVE_CONFIG_H |
18 | #include "config.h" | |
19 | #endif | |
20 | ||
[ac7d5ef0] | 21 | #include "system.h" |
22 | ||
23 | rtems_timer_service_routine Delayed_send_event( | |
24 | rtems_id timer_id, | |
[7753aa9f] | 25 | void *id_ptr |
[ac7d5ef0] | 26 | ) |
27 | { | |
28 | rtems_status_code status; | |
[7753aa9f] | 29 | rtems_id id = *(rtems_id *)id_ptr; |
[ac7d5ef0] | 30 | |
[7753aa9f] | 31 | status = rtems_event_send( id, RTEMS_EVENT_16 ); |
32 | fatal_directive_check_status_only( | |
33 | status, RTEMS_SUCCESSFUL, "rtems_event_send" ); | |
[ac7d5ef0] | 34 | } |
Note: See TracBrowser
for help on using the repository browser.