1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-18 23:11:18 +03:00

12 Commits

Author SHA1 Message Date
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
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
13fd331d41 detabbing (by tab with 4) 2016-12-16 10:41:23 +01:00
b601136f56 stripped trailing whitespace 2016-12-16 10:29:20 +01:00
67eaf5400d Small makefile simplification reg. custom baud rate support 2016-12-15 15:47:08 +01:00
a65e9e1e3a USE_CUSTOM_BAUD support for linux/powerpc[64le].
The powerpc[64le] arch uses different ioctls for custom baud setting: It
uses the old TCSETS*, TCGETS ioctls, not the new TCSETS*2, TCGETS2 ones.

Cross-compiles cleanly, not tested (no h/w currently available).
2015-08-27 23:22:56 +03:00
30a06fd05f termios2.[ch]: Comments clean-up and corrections. 2015-08-20 12:02:27 +03:00
46d2a20dcc Removed inclusion of unused header from termios2.c 2015-08-19 23:51:25 +03:00
a5208a560b termios2: Clear both CBAUD and CBAUDEX bits. Not only CBAUD.
This is pure pedantry since CBAUDEX *is* included in CBAUD, but lets be
explicit.
2015-08-19 21:31:35 +03:00
6642a7f1f2 Moved definition of termios2 struct and related macros to termbits2.h
Also: Fill the user-space termios structure's "c_cc[]" slots beyond
K_NCCS with _POSIX_VDISABLE.
2015-08-19 09:45:40 +03:00
2741018a66 Removed debugging helpers. 2015-08-19 09:38:56 +03:00
cf3fbbdbab termios(3)-like functions that allow custom baud rates.
Uses the "termios2" linux-kernel interface (ioctls TCGETS2, TCSETS2,
TCSETSF2, etc) to provide termios(3)-like functions that allow setting
custom baud rates.
Only works for Linux.
2015-08-09 23:12:15 +03:00