LTCD_060719.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:45:17 +02:00
commit f86e69648b
156 files changed
+49537

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
// COM port Terminal
void CommTerm(U4 port=1,U4 baud=9600)
{
U8 sc;
U8 ch=0;
coutln "ESC to exit";
CommOpen8N1(port,baud);
while (ch!=CH_ESC) {
if (CommScanChar(port,&ch))
PutChar(ch);
ch=0;
if (ScanChar(&sc,&ch))
CommPutChar(port,ch);
SwapInNext;
}
CommClose(port);
}
CommTerm;