Fixed Linux MS/TP 76800 bitrate for Linux 2.6.20+ circa 2007 and added get/set API for config. (#1007)

This commit is contained in:
Ryan Mulder
2025-05-29 09:54:12 -04:00
committed by GitHub
parent 442f408c1a
commit cb7ef20485
7 changed files with 202 additions and 395 deletions
+25
View File
@@ -0,0 +1,25 @@
#ifndef TERMIOS2_H
#define TERMIOS2_H
#define termios asmtermios /*avoid conflicts with others including termios.h*/
#include <asm/termbits.h>
#undef termios
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
int termios2_tcsetattr(
int fildes, int optional_actions, const struct termios2 *termios2_p);
int termios2_tcgetattr(int fildes, struct termios2 *termios2_p);
int termios2_tcflush(int fildes, int queue_selector);
int termios2_tcdrain(int fildes);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif