make configure not ugly, implement usr_put

This commit is contained in:
Prakxo
2023-06-18 23:09:27 +02:00
parent 152bee2f38
commit b39e7532e0
5 changed files with 31 additions and 10 deletions
+25
View File
@@ -0,0 +1,25 @@
#include "TRK/usr_put.h"
#include "TRK/msghndlr.h"
extern void OSReport(const char*);
TRKResult usr_puts_serial(const char* putString){
TRKResult res = 0;
char tstring;
char buff[2];
int con;
while ((res == 0) && (tstring = *putString++) != 0){
con = GetTRKConnected();
buff[0] = tstring;
buff[1] = '\0';
SetTRKConnected(0);
OSReport(buff);
SetTRKConnected(con);
res = 0;
}
return res;
}
TRKResult usr_put_initialize(){
}