uart_pty: Introduced the notion of 'tap' port
authorMichel Pollet <buserror@gmail.com>
Sat, 2 Jun 2012 14:34:21 +0000 (15:34 +0100)
committerMichel Pollet <buserror@gmail.com>
Sat, 2 Jun 2012 14:34:21 +0000 (15:34 +0100)
commit8c5185f9db51a5eea9a0e0a794f95131cacd391c
tree3e438fbe4c344fd1054335cdb7c94eafe6d603de
parent47a131708adafd4eba74038fd981baab91c1ff40
uart_pty: Introduced the notion of 'tap' port

The previous way to debug was 'stealing' the port by using an xterm on it..
the new way leaves the proper pty available to the application you want to use
but still allow you to have a 'tap' port that sees both the sides of the
communication om the other pty.

You can also type stuff obviously, and it does some cr/lf conversions.

/tmp/simavr-uart0 : will be the normal fake serial port
/tmp/simavr-uarttap0 : is the one to launch an xterm on

This allow you to really see the serial traffic as it happends with both
requests and replies.

Signed-off-by: Michel Pollet <buserror@gmail.com>
examples/parts/uart_pty.c
examples/parts/uart_pty.h