#include "vend.h"
+#include "chime.h"
#include "sci.h"
char sci_tx_buf[BUFFER_LEN];
}
void sci_rx_int() {
+ /* XXX FIXME we should do something about errors. nack? */
if (sci_have_packet) {
/* overrun :( */
_io_ports[M6811_SCDR]; /* read it anyway */
}
void sci_interrupt_serial() {
+ chime_start();
+
if (_io_ports[M6811_SCSR] & M6811_RDRF) sci_rx_int();
+
+ if (_io_ports[M6811_SCSR] & M6811_OR)
+ _io_ports[M6811_SCDR]; /* declare it a lost cause */
}
void msg_clr() {