From 0c3947ddd6f8a9f65f340811418301730088b15f Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Fri, 5 Mar 2010 06:59:51 -0500 Subject: [PATCH] forgot to add packet.h --- lib/include/packet.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/include/packet.h diff --git a/lib/include/packet.h b/lib/include/packet.h new file mode 100644 index 000000000..8cbecc8ac --- /dev/null +++ b/lib/include/packet.h @@ -0,0 +1,19 @@ +#ifndef PACKET_H +#define PACKET_H + +#ifndef MAX_PACKET_SIZE +#define MAX_PACKET_SIZE 127 +#endif + +typedef uint16_t short_addr_t; + +struct packet { + short_addr_t addr; + uint8_t length; + volatile struct packet * left; + volatile struct packet * right; + uint8_t data[MAX_PACKET_SIZE]; +}; +typedef struct packet packet_t; + +#endif