[En-Nut-Discussion] Uart Driver

Ralph Mason ralph.mason at telogis.com
Tue Dec 9 23:58:37 CET 2003


It's a bit late but my take on what I would like (based on how I use the 
uart).  I also haven't caught the whole conversation, so please excuse 
anything already covered.

Partitionable - uart logic should be able to be easily separated from 
hardware control so that other uarts can use the bulk of the driver. rts 
& cts handling should be separable also so that it doesn't bulk it up if 
it's unused and so that hardware that supports rts & cts in hardware can 
use the same control

Adjustable input stream size (at compile time), I run 4 fast uarts and 
255 bytes just wasn't enough.

Allocation of Uart structures on the heap (during init of the uart)

9 bit should be a separate driver so the complication doesn't affect the 
standard driver. Maybe allowing you to register the device with the 
underlying device at runtime causing the right driver to be linked ( 
perhaps NutRegisterDevice(&uart9Bit,&uart0); )

ioctrl should be passed the file handle not the device handle.

Regards
Ralph









More information about the En-Nut-Discussion mailing list