4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-1999. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <rtems/itron.h> |
---|
17 | |
---|
18 | #include <rtems/itron/semaphore.h> |
---|
19 | #include <rtems/itron/task.h> |
---|
20 | #include <rtems/score/tod.h> |
---|
21 | |
---|
22 | /* |
---|
23 | * preq_sem - Poll and Request Semaphore |
---|
24 | * |
---|
25 | * This function implements the ITRON 3.0 preq_sem() service. |
---|
26 | */ |
---|
27 | |
---|
28 | ER preq_sem( |
---|
29 | ID semid |
---|
30 | ) |
---|
31 | { |
---|
32 | return twai_sem( semid, TMO_POL ); |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.