X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=z80comp2;a=blobdiff_plain;f=emu%2Fsrc%2Fduart.h;fp=emu%2Fsrc%2Fduart.h;h=f2e125b6c579827c0baeeeaaa1dd04d8e3726dc2;hp=0000000000000000000000000000000000000000;hb=a0a85eb847ff3bb5da13e78618efdcd1b9f588cf;hpb=b55f31d1ac4a1991f2ad7b2d17be06969ea25e47 diff --git a/emu/src/duart.h b/emu/src/duart.h new file mode 100644 index 0000000..f2e125b --- /dev/null +++ b/emu/src/duart.h @@ -0,0 +1,12 @@ +#ifndef DUART_H_ +#define DUART_H_ + +#include + +void duart_reset(void); +void duart_serin(int port, int c); + +uint8_t duart_read(int rs); +void duart_write(int rs, uint8_t data); + +#endif /* DUART_H_ */