mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
Added tcdrain(), cfgetospeed(), cfsetospeed(), cfgetispeed(), and cfsetispeed().
This commit is contained in:
@@ -173,9 +173,13 @@ struct termios {
|
|||||||
#define TCSADRAIN 1
|
#define TCSADRAIN 1
|
||||||
#define TCSAFLUSH 2
|
#define TCSAFLUSH 2
|
||||||
|
|
||||||
/* Currently we support only tcgetattr and tcsetattr */
|
|
||||||
int tcgetattr(int, struct termios *);
|
int tcgetattr(int, struct termios *);
|
||||||
int tcsetattr(int, int, struct termios *);
|
int tcsetattr(int, int, struct termios *);
|
||||||
|
int tcdrain(int);
|
||||||
|
speed_t cfgetospeed(const struct termios *tp);
|
||||||
|
int cfsetospeed(struct termios *tp, speed_t speed);
|
||||||
|
speed_t cfgetispeed(const struct termios *tp);
|
||||||
|
int cfsetispeed(struct termios *tp, speed_t speed);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -173,9 +173,13 @@ struct termios {
|
|||||||
#define TCSADRAIN 1
|
#define TCSADRAIN 1
|
||||||
#define TCSAFLUSH 2
|
#define TCSAFLUSH 2
|
||||||
|
|
||||||
/* Currently we support only tcgetattr and tcsetattr */
|
|
||||||
int tcgetattr(int, struct termios *);
|
int tcgetattr(int, struct termios *);
|
||||||
int tcsetattr(int, int, struct termios *);
|
int tcsetattr(int, int, struct termios *);
|
||||||
|
int tcdrain(int);
|
||||||
|
speed_t cfgetospeed(const struct termios *tp);
|
||||||
|
int cfsetospeed(struct termios *tp, speed_t speed);
|
||||||
|
speed_t cfgetispeed(const struct termios *tp);
|
||||||
|
int cfsetispeed(struct termios *tp, speed_t speed);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -173,9 +173,13 @@ struct termios {
|
|||||||
#define TCSADRAIN 1
|
#define TCSADRAIN 1
|
||||||
#define TCSAFLUSH 2
|
#define TCSAFLUSH 2
|
||||||
|
|
||||||
/* Currently we support only tcgetattr and tcsetattr */
|
|
||||||
int tcgetattr(int, struct termios *);
|
int tcgetattr(int, struct termios *);
|
||||||
int tcsetattr(int, int, struct termios *);
|
int tcsetattr(int, int, struct termios *);
|
||||||
|
int tcdrain(int);
|
||||||
|
speed_t cfgetospeed(const struct termios *tp);
|
||||||
|
int cfsetospeed(struct termios *tp, speed_t speed);
|
||||||
|
speed_t cfgetispeed(const struct termios *tp);
|
||||||
|
int cfsetispeed(struct termios *tp, speed_t speed);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user