1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00
Commit Graph

9 Commits

Author SHA1 Message Date
1acf1ddaba Compile with libc's without cispeed / cospeed
Some libc implementations (e.g. musl) do not define the cispeed and
cospeed struct termios fields. So we have to check the
_HAVE_STRUCT_TERMIOS_C_ISPEED and _HAVE_STRUCT_TERMIOS_C_OSPEED
macros. If not defined, we disable custom baudrate support.
2018-04-12 15:16:04 +03:00
ee23af0cb9 Disable custom baudrate support at runtime (Linux)
If picocom is compiled *with* custom-baudrate support (USE_CUSTOM_BAUD)
for Linux, then it uses a new set of ioctl's (TCGETS2 vs TCGETS, etc) to
access the serial ports. This patch allows the custom baudrate support
to be disabled at runtime (without recompiling), and picocom to switch
to using the old ioctl's.

To disable custom baudrate support (and switch back to the "old" ioctls)
simply define the environment variable NO_CUSTOM_BAUD, before starting
picocom.

This applies only to Linux and, obviously, only when picocom has been
compiled with custom baudrate support (USE_CUSTOM_BAUD).
2018-02-20 10:29:45 +02:00
b1f5034610 Merge pull request #90 from JoeMerten/osx-custom-baud-enable
Changed when to enable custom baud by default (#84)
2018-01-29 09:46:41 +02:00
07c27c626d Changed __x86__ macro to __i386__ 2018-01-28 17:29:44 +02:00
56e6886768 Enable default custom baud not for old PPC Mac (#84)
This check implies, that custom baud will not be enabled by default for OSX older than 10.4
2018-01-28 16:23:05 +01:00
a799995415 Changed when to enable custom baud by default (#84)
For Apple:
- enable by default for macOS / OSX
- do not enable by default for iOS

Have not found a way to check for OSX version on preprocessor level.
2018-01-25 17:02:18 +01:00
58e55a835f Updated email (comments) 2018-01-17 20:38:27 +02:00
2fa6a1d7a2 Changed when to enable custom baud by default
Be very conservative when enabling custom baudrate
support (USE_CUSTOM_BAUD) by default. Only enable (by default) on
systems where we know it will cause no problems. For other systems the
user can try to enable it explicitly (see Makefile).

Currently enabled by default on:

  Linux, Kernel verison > 2.6.0, x86 and x86_64 architectures
  FreeBSD, OpenBSD, DragonFly BSD
2018-01-17 19:57:07 +02:00
8ca2e5a10f Better build support for custom baudrates
For some systems (OSes, versions, architectures) custom-baudrate
support is enabled by default.

For others, support may work, but must be enabled by defining
USE_CUSTOM_BAUD in the Makefile

You can also disable custom baudrate support altogether (even for
systems where it's enabled by default), by defining NO_CUSTOM_BAUD in
the Makefile
2018-01-16 03:46:09 +02:00