[En-Nut-Discussion] Debug device input feature added

Pavel Chromy chromy at asix.cz
Sun Apr 25 10:51:01 CEST 2004


Ooop forgot to attach the source ;-)

> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug0.zip
Type: application/x-zip-compressed
Size: 2475 bytes
Desc: not available
URL: <http://lists.egnite.de/pipermail/en-nut-discussion/attachments/20040425/5d925466/attachment-0001.bin>


More information about the En-Nut-Discussion mailing list