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

6 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
b601136f56 stripped trailing whitespace 2016-12-16 10:29:20 +01:00
30a06fd05f termios2.[ch]: Comments clean-up and corrections. 2015-08-20 12:02:27 +03:00
fa16dbc429 Defined macros to override tcXXX / cfXXX functions with tc2 equivalent.
They become:

  tcsetattr --> tc2setatter
  tcgetattr --> tc2getattr
  cfsetispeed --> cf2setispeed
  cfgetispeed --> cf2getispeed

Also defined:

  cfsetospeed_custom, cfsetispeed_custom

And

  cfgetospeed_custom, cfgetispeed_custom
2015-08-19 09:39:53 +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