summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/termiosinitialize.c
blob: ae80243b2ae134847d7539c6cf02c34fbbe815ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
 * @file
 *
 * @ingroup TermiostypesSupport
 *
 * @brief This source file contains the implementation of
 *   rtems_termios_device_lock_acquire_default() and
 *   rtems_termios_device_lock_release_default().
 */

/*
 * Copyright (c) 1997 Eric Norum <eric@norum.ca>
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rtems.org/license/LICENSE.
 */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <rtems/termiosdevice.h>

void
rtems_termios_device_lock_acquire_default(
  rtems_termios_device_context *ctx,
  rtems_interrupt_lock_context *lock_context
)
{
  rtems_interrupt_lock_acquire (&ctx->lock.interrupt, lock_context);
}

void
rtems_termios_device_lock_release_default(
  rtems_termios_device_context *ctx,
  rtems_interrupt_lock_context *lock_context
)
{
  rtems_interrupt_lock_release (&ctx->lock.interrupt, lock_context);
}