Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:15

0001 /**
0002  * @file
0003  *
0004  * @ingroup TermiostypesSupport
0005  *
0006  * @brief This source file contains the implementation of
0007  *   rtems_termios_device_lock_acquire_default() and
0008  *   rtems_termios_device_lock_release_default().
0009  */
0010 
0011 /*
0012  * Copyright (c) 1997 Eric Norum <eric@norum.ca>
0013  *
0014  * The license and distribution terms for this file may be
0015  * found in the file LICENSE in this distribution or at
0016  * http://www.rtems.org/license/LICENSE.
0017  */
0018 
0019 #ifdef HAVE_CONFIG_H
0020 #include "config.h"
0021 #endif
0022 
0023 #include <rtems/termiosdevice.h>
0024 
0025 void
0026 rtems_termios_device_lock_acquire_default(
0027   rtems_termios_device_context *ctx,
0028   rtems_interrupt_lock_context *lock_context
0029 )
0030 {
0031   rtems_interrupt_lock_acquire (&ctx->lock.interrupt, lock_context);
0032 }
0033 
0034 void
0035 rtems_termios_device_lock_release_default(
0036   rtems_termios_device_context *ctx,
0037   rtems_interrupt_lock_context *lock_context
0038 )
0039 {
0040   rtems_interrupt_lock_release (&ctx->lock.interrupt, lock_context);
0041 }