source: rtems/cpukit/libcsupport/src/termiosinitialize.c @ 0c3d6f58

Last change on this file since 0c3d6f58 was 0c3d6f58, checked in by Sebastian Huber <sebastian.huber@…>, on 05/23/23 at 08:44:04

termios: Add <rtems/termiosdevice.h>

Add <rtems/termiosdevice.h> which does not depend on <rtems/libio.h> to
provide rtems_termios_device_context and rtems_termios_device_handler.
For polled serial device drivers, this removes a header file dependency
to the full file system support.

  • Property mode set to 100644
File size: 927 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup TermiostypesSupport
5 *
6 * @brief This source file contains the implementation of
7 *   rtems_termios_device_lock_acquire_default() and
8 *   rtems_termios_device_lock_release_default().
9 */
10
11/*
12 * Copyright (c) 1997 Eric Norum <eric@norum.ca>
13 *
14 * The license and distribution terms for this file may be
15 * found in the file LICENSE in this distribution or at
16 * http://www.rtems.org/license/LICENSE.
17 */
18
19#ifdef HAVE_CONFIG_H
20#include "config.h"
21#endif
22
23#include <rtems/termiosdevice.h>
24
25void
26rtems_termios_device_lock_acquire_default(
27  rtems_termios_device_context *ctx,
28  rtems_interrupt_lock_context *lock_context
29)
30{
31  rtems_interrupt_lock_acquire (&ctx->lock.interrupt, lock_context);
32}
33
34void
35rtems_termios_device_lock_release_default(
36  rtems_termios_device_context *ctx,
37  rtems_interrupt_lock_context *lock_context
38)
39{
40  rtems_interrupt_lock_release (&ctx->lock.interrupt, lock_context);
41}
Note: See TracBrowser for help on using the repository browser.