summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4562426)
+#include <kern/kfile.h>
+
#include <drv/timer.h>
#include <drv/ser.h>
#include <drv/timer.h>
#include <drv/ser.h>
int c;
/* Get all chars from buffer */
int c;
/* Get all chars from buffer */
- while ((c = ser_getchar_nowait(pkt->tag_ser)) != EOF)
+ while ((c = kfile_getc(&pkt->tag_ser->fd)) != EOF)
{
/* Search for STX char in received chars */
if (c == TAG_STX)
{
/* Search for STX char in received chars */
if (c == TAG_STX)
{
pkt->buf[TAG_MAX_PRINT_CHARS] = '\x0';
/* Write read TAG on communication serial */
{
pkt->buf[TAG_MAX_PRINT_CHARS] = '\x0';
/* Write read TAG on communication serial */
- ser_printf(pkt->comm_ser, "tag %s", pkt->buf);
+ kfile_printf(&pkt->comm_ser->fd, "tag %s", pkt->buf);
pkt->sync = false;
}
else
pkt->sync = false;
}
else