RTEMS
cpukit
libcsupport
src
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(
29
rtems_termios_device_context
*ctx,
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(
38
rtems_termios_device_context
*ctx,
39
rtems_interrupt_lock_context
*lock_context
40
)
41
{
42
rtems_interrupt_lock_release
(&ctx->lock.interrupt, lock_context);
43
}
rtems_termios_device_context
Termios device context.
Definition:
termiostypes.h:75
termiostypes.h
ISR_lock_Context
Local ISR lock context for acquire and release pairs.
Definition:
isrlock.h:65
rtems_interrupt_lock_release
#define rtems_interrupt_lock_release(_lock, _lock_context)
%
Definition:
intr.h:406
rtems_interrupt_lock_acquire
#define rtems_interrupt_lock_acquire(_lock, _lock_context)
%
Definition:
intr.h:257
Generated by
1.8.14