source:
rtems/cpukit/rtems/src/timerserverfirewhen.c
@
66cb142
Last change on this file since 66cb142 was 03b900d, checked in by Sebastian Huber <sebastian.huber@…>, on 02/18/16 at 07:36:26 | |
---|---|
|
|
File size: 951 bytes |
Rev | Line | |
---|---|---|
[4c90eb4] | 1 | /** |
2 | * @file | |
[36a63d78] | 3 | * |
[4c90eb4] | 4 | * @brief RTEMS Timer Server Fire When Directive |
5 | * @ingroup ClassicTimer Timers | |
6 | */ | |
7 | ||
8 | /* | |
[0e87deaa] | 9 | * COPYRIGHT (c) 1989-2007. |
[36a63d78] | 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 | |
[c499856] | 14 | * http://www.rtems.org/license/LICENSE. |
[36a63d78] | 15 | */ |
16 | ||
[1095ec1] | 17 | #if HAVE_CONFIG_H |
18 | #include "config.h" | |
19 | #endif | |
20 | ||
[e90b1df] | 21 | #include <rtems/rtems/timerimpl.h> |
[36a63d78] | 22 | |
23 | rtems_status_code rtems_timer_server_fire_when( | |
[d3b72ca3] | 24 | rtems_id id, |
[36a63d78] | 25 | rtems_time_of_day *wall_time, |
26 | rtems_timer_service_routine_entry routine, | |
27 | void *user_data | |
28 | ) | |
29 | { | |
[03b900d] | 30 | Timer_server_Control *timer_server; |
31 | ||
32 | timer_server = _Timer_server; | |
[36a63d78] | 33 | |
[6e51c4c] | 34 | if ( !timer_server ) |
[36a63d78] | 35 | return RTEMS_INCORRECT_STATE; |
36 | ||
[03b900d] | 37 | return _Timer_Fire_when( |
38 | id, | |
39 | wall_time, | |
40 | routine, | |
41 | user_data, | |
42 | TIMER_TIME_OF_DAY_ON_TASK, | |
43 | _Timer_server_Routine_adaptor | |
44 | ); | |
[36a63d78] | 45 | } |
Note: See TracBrowser
for help on using the repository browser.