X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fnet%2Fkeytag.h;h=ee8258c380fdd1e30a5933ebef2d23a234f56816;hb=56f2c002c50338f23f1b969ba51a43b0eb24f3da;hp=b815a8b1b117328d770a347d55a5665d846887e0;hpb=ea9f2eb7d3ab9137f317d02404ff60f6806e1bb9;p=bertos.git diff --git a/bertos/net/keytag.h b/bertos/net/keytag.h index b815a8b1..ee8258c3 100644 --- a/bertos/net/keytag.h +++ b/bertos/net/keytag.h @@ -33,50 +33,37 @@ * \author Andrea Grandi * * \brief Tag protocol. (interface). + * + * $WIZ$ module_name = "keytag" + * $WIZ$ module_configuration = "bertos/cfg/cfg_keytag.h" + * $WIZ$ module_depends = "kfile" + * $WIZ$ module_hw = "" */ #ifndef NET_KEYTAG_H #define NET_KEYTAG_H -#include -#include +#include "cfg/cfg_keytag.h" +#include -/** - * Starting communication char (STX). - */ -#define TAG_STX 0x02 +#include -/** - * Ending communication char (ETX). - */ -#define TAG_ETX 0x03 - -/** - * Max buffer lenght - */ -#define TAG_MAX_LEN 14 - -#define TAG_SER_PORT 0 -#define TAG_SER_BAUDRATE 9600 - -/** - * Max number of chars to print in the communication serial - */ -#define TAG_MAX_PRINT_CHARS 12 /** * Structure of a Tag packet */ typedef struct TagPacket { - KFile *tag; ///