[Opendispense] UART 16550 code

Adrian Chadd [email protected]
Wed Aug 13 01:50:24 2003


On Tue, Aug 12, 2003, Bernard Blackham wrote:
> On Tue, Aug 12, 2003 at 08:55:19PM +1000, David Basden wrote:
> > As for simple code, try looking at Minix, which is designed to teach.
> > Once you've done that, write your own because Minix tries to look like
> > UNIX, and therefore all terminal handling is forever fucked in the head.
> 
> Danke! Well both the serial driver from Minix and linux-1.0 look
> pretty simple and clean. Though the Minix driver doesn't support the
> 16550, only the 16450, which probably isn't a huge drawback. I'll
> probably write code for a 16450 anyhow - it seems simpler, does the
> speeds we need, and the 16550 (at least the one I have in mind)
> enters 16450-compatible mode on reset.

16550 == 16450 w/ a few bytes of FIFO
16450 == 8250 which can do >9600 reliably



Adrian