diff --git a/bin/makefile-tail b/bin/makefile-tail index cce0bca..ad64c19 100644 --- a/bin/makefile-tail +++ b/bin/makefile-tail @@ -842,8 +842,8 @@ $(OBJECTDIR)timer.o: $(SRCDIR)timer.c $(REQUIRED-INCS) \ $(OBJECTDIR)tty.o: $(SRCDIR)tty.c $(REQUIRED-INCS) \ $(INCDIR)lispemul.h $(INCDIR)lispmap.h \ - $(INCDIR)adr68k.h $(INCDIR)lsptypes.h $(INCDIR)lspglob.h $(INCDIR)ifpage.h \ - $(INCDIR)iopage.h $(INCDIR)miscstat.h $(INCDIR)commondefs.h $(INCDIR)tty.h + $(INCDIR)adr68k.h $(INCDIR)lsptypes.h $(INCDIR)lspglob.h \ + $(INCDIR)commondefs.h $(INCDIR)tty.h $(INCDIR)ttydefs.h $(CC) $(RFLAGS) $(SRCDIR)tty.c -o $(OBJECTDIR)tty.o $(OBJECTDIR)typeof.o: $(SRCDIR)typeof.c $(REQUIRED-INCS) \ diff --git a/inc/ttydefs.h b/inc/ttydefs.h new file mode 100644 index 0000000..ecb4d3e --- /dev/null +++ b/inc/ttydefs.h @@ -0,0 +1,14 @@ +#ifndef TTYDEFS_H +#define TTYDEFS_H 1 +void tty_init(void); +void tty_open(void); +void tty_close(void); +void tty_get(void); +void tty_put(void); +void tty_setbaudrate(void); +void tty_setparam(void); +void tty_breakon(void); +void tty_breakoff(void); +void tty_cmd(void); +void tty_debug(const char *name); +#endif diff --git a/src/tty.c b/src/tty.c index 86447cd..d8b456b 100644 --- a/src/tty.c +++ b/src/tty.c @@ -23,6 +23,7 @@ #include "lspglob.h" #include "commondefs.h" #include "tty.h" +#include "ttydefs.h" DLTTY_OUT_COMMAND *DLTTYPortCmd; DLTTY_IN_CSB *DLTTYIn; @@ -108,7 +109,7 @@ void tty_put(void) } } -speed_t tty_baudtosymbol(short aBaud) +static speed_t tty_baudtosymbol(short aBaud) { /* This matches the constants in DLTTY where possible. */ if (aBaud == 0) return (B50);