mirror of
https://github.com/UzixLS/picocom.git
synced 2025-07-19 07:21:18 +03:00
added high baudrate constants for OSX
This commit is contained in:
42
term.c
42
term.c
@ -160,6 +160,48 @@ term_perror (const char *prefix)
|
||||
prefix, term_strerror(term_errno, errno));
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
/* OSX termios.h unfortunately just provides constants for
|
||||
* baudrates up to 230k, so we add the missing constants here. */
|
||||
#if defined(__APPLE__)
|
||||
#ifndef B460800
|
||||
#define B460800 460800
|
||||
#endif
|
||||
#ifndef B500000
|
||||
#define B500000 500000
|
||||
#endif
|
||||
#ifndef B576000
|
||||
#define B576000 576000
|
||||
#endif
|
||||
#ifndef B921600
|
||||
#define B921600 921600
|
||||
#endif
|
||||
#ifndef B1000000
|
||||
#define B1000000 1000000
|
||||
#endif
|
||||
#ifndef B1152000
|
||||
#define B1152000 1152000
|
||||
#endif
|
||||
#ifndef B1500000
|
||||
#define B1500000 1500000
|
||||
#endif
|
||||
#ifndef B2000000
|
||||
#define B2000000 2000000
|
||||
#endif
|
||||
#ifndef B2500000
|
||||
#define B2500000 2500000
|
||||
#endif
|
||||
#ifndef B3000000
|
||||
#define B3000000 3000000
|
||||
#endif
|
||||
#ifndef B3500000
|
||||
#define B3500000 3500000
|
||||
#endif
|
||||
#ifndef B4000000
|
||||
#define B4000000 4000000
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
#define BNONE 0xFFFFFFFF
|
||||
|
Reference in New Issue
Block a user