mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 21:17:15 +08:00
termios: Make rtems_termios_ttyMutex private
This mutex is used to maintain termios internal data structures.
This commit is contained in:
@@ -596,8 +596,6 @@ int rtems_termios_poll(
|
||||
|
||||
#define RTEMS_TERMIOS_NUMBER_BAUD_RATES 25
|
||||
|
||||
extern rtems_mutex rtems_termios_ttyMutex;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -113,6 +113,9 @@ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument);
|
||||
#define TERMIOS_RX_PROC_EVENT RTEMS_EVENT_1
|
||||
#define TERMIOS_RX_TERMINATE_EVENT RTEMS_EVENT_0
|
||||
|
||||
static rtems_mutex rtems_termios_ttyMutex =
|
||||
RTEMS_MUTEX_INITIALIZER( "termios" );
|
||||
|
||||
static void
|
||||
rtems_termios_obtain (void)
|
||||
{
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
|
||||
#include <rtems/termiostypes.h>
|
||||
|
||||
rtems_mutex rtems_termios_ttyMutex = RTEMS_MUTEX_INITIALIZER( "termios" );
|
||||
|
||||
void
|
||||
rtems_termios_device_lock_acquire_default(
|
||||
rtems_termios_device_context *ctx,
|
||||
|
||||
Reference in New Issue
Block a user