mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
On some platforms calling high()/low() to switch line states result in costly system calls whick makes it impossible to swith two or more tty lines simultaneously. To help solve this timing issue we introduce a tty line state configuration API which can be used instead of using high()/low(). Using config_low(line) and config_high(line) one can set up a new line state configuration for multiple lines and then use config_apply() to finally apply the configuration. This will result in only one system call to instruct the serial port drive to switch all the configured line states which should help ensure that the lines are switched simultaneously. Example: script = config_high(DTR); config_low(RTS); config_apply() |
||
|---|---|---|
| .. | ||
| meson.build | ||
| tio.1.in | ||
| tio.1.txt | ||