X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=net%2Fkeytag.h;h=541005ea694c9fdb969cce3b637098ef186e5d3d;hb=faf2f6bfd5933ff75e6cc01e3d48f9277f731d8f;hp=651f134c16b2201711bc473a5299ceae97a50442;hpb=4ea1189f208eee652e9028c3fe4327293c70662b;p=bertos.git diff --git a/net/keytag.h b/net/keytag.h index 651f134c..541005ea 100644 --- a/net/keytag.h +++ b/net/keytag.h @@ -38,6 +38,9 @@ #ifndef NET_KEYTAG_H #define NET_KEYTAG_H +#include +#include + /** * Starting communication char (STX). */ @@ -61,15 +64,13 @@ */ #define TAG_MAX_PRINT_CHARS 12 -#include - /** * Structure of a Tag packet */ typedef struct TagPacket { - struct Serial *tag_ser; // Tag serial - struct Serial *comm_ser; // Communication serial + KFileSerial *tag_ser; // Tag serial + KFileSerial *comm_ser; // Communication serial bool sync; // Status flag: true if we find an STX uint16_t len; // Packet lenght uint8_t buf[TAG_MAX_LEN]; // Reception buffer