RTEMS
termiosinitialize.c
Go to the documentation of this file.
1 
8 /*
9  * Author:
10  * W. Eric Norum
11  * Saskatchewan Accelerator Laboratory
12  * University of Saskatchewan
13  * Saskatoon, Saskatchewan, CANADA
14  * eric@skatter.usask.ca
15  *
16  * The license and distribution terms for this file may be
17  * found in the file LICENSE in this distribution or at
18  * http://www.rtems.org/license/LICENSE.
19  */
20 
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24 
25 #include <rtems/termiostypes.h>
26 
27 void
28 rtems_termios_device_lock_acquire_default(
30  rtems_interrupt_lock_context *lock_context
31 )
32 {
33  rtems_interrupt_lock_acquire (&ctx->lock.interrupt, lock_context);
34 }
35 
36 void
37 rtems_termios_device_lock_release_default(
39  rtems_interrupt_lock_context *lock_context
40 )
41 {
42  rtems_interrupt_lock_release (&ctx->lock.interrupt, lock_context);
43 }
Termios device context.
Definition: termiostypes.h:75
Local ISR lock context for acquire and release pairs.
Definition: isrlock.h:65
#define rtems_interrupt_lock_release(_lock, _lock_context)
%
Definition: intr.h:406
#define rtems_interrupt_lock_acquire(_lock, _lock_context)
%
Definition: intr.h:257