Beginnings of serial interface
[uccvend-snackrom.git] / ROM2 / sci.c
1 #include "vend.h"
2 #include "sci.h"
3
4 void sci_init() {
5         _io_ports[M6811_BAUD] = M6811_DEF_BAUD;
6         /* Setup character format 1 start, 8-bits, 1 stop.  */
7         _io_ports[M6811_SCCR1] = 0;
8
9         /* Enable reciever and transmitter.  */
10         _io_ports[M6811_SCCR2] = 0xc;
11 }

UCC git Repository :: git.ucc.asn.au