[Opendispense] UART 16550 code

David Basden davidb-7654@rcpt.to
Tue Aug 12 10:55:19 2003


I've written code to talk to a 16550 under Linux, which probably
isn't the same thing. As for the 16550 itself, it seems pretty easy
to drive, or at least firmly annoying.

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.

Maybe from some public domain DOS apps?

David

On Tue, Aug 12, 2003 at 04:20:09PM +0800, Bernard Blackham wrote:
> Hi all,
> 
> I think I've more or less put in place all the code necessary for
> talking to the coin mech, the motors, display and keypad. Albeit,
> all of it is untested, and could do with some thorough checking
> before we burn it (I will soon).
> 
> Meanwhile, I've been thinking of how to go about using a 16550 on
> the board. Before I go out writing the code to drive it, does
> anybody have experience along these lines? Or any GPL'd code that
> could be copied across (eg, drivers/char/serial.c from a linux
> source tree, but much simpler)?
> 
> >From the looks of it, it wouldn't be too hard to write a driver from
> scratch, but seems like it'd be reinventing the wheel.
> 
> Regards,
> 
> Bernard.
> 
> -- 
>  Bernard Blackham 
>  bernard at blackham dot com dot au
> 
> _______________________________________________
> Opendispense mailing list
> Opendispense@ucc.gu.uwa.edu.au
> http://lists.ucc.gu.uwa.edu.au/mailman/listinfo/opendispense
>