Files
rtems/cpukit/libcsupport/src/termiosinitialize.c
Sebastian Huber 0c3d6f58f1 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.
2023-05-31 10:07:17 +02:00

42 lines
927 B
C

/**
* @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);
}