[En-Nut-Discussion] Debug device input feature added
Pavel Chromy
chromy at asix.cz
Fri Apr 23 15:15:00 CEST 2004
Hi All,
I have added unbuffered input to devDebug0.
It is simple, not interrupt driver, it just yields the cpu when waiting for a character
(eats cpu a bit), but provides wint an easy way of controlling your application when debugging.
Since it does not use an interrupt, buffer overruns may occur, which should not be a big deal,
since the other end of the serial line is typically connected to a device
with low character rate during debugging - a mean human interface device ;-)
Also ioctl call UART_GETSTATUS which can return UART_RXBUFFEREMPTY was also added,
which may be used to ensure whether a character was received and read from the debug device
only if it really was.
Anyone interrested? I propose this to be added to the CVS - I think it is pretty usefull,
at least it was for me.
Note: the same changes might be applicable also to devDebug1.
--
#define QUESTION ((bb)||!(bb))
Mgr. Pavel Chromy
ASIX s.r.o.
Staropramenna 4
150 00 Praha 5
More information about the En-Nut-Discussion
mailing list