terminal is working, but expect some bugs...

This commit is contained in:
phyto
2019-05-20 14:49:31 +02:00
parent 6ad5283de9
commit 54a41cfeb3
6 changed files with 112 additions and 26 deletions

View File

@@ -10,6 +10,8 @@
#include "serial.h"
extern int verbosity;
/* -------------------------------------------------------------------- */
static int baudrate2const(int bauds)
{
@@ -107,6 +109,11 @@ tcsetattr(uart0, TCSANOW, &options);
tcflush(uart0, TCIFLUSH); /* do it again, sam */
if (verbosity) {
fprintf(stderr, "%s %s uart0 = %d\n",
__FILE__, __func__, uart0);
}
return uart0;
}
/* -------------------------------------------------------------------- */