mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-20 00:38:52 +00:00
forgot to add packet.h
This commit is contained in:
19
lib/include/packet.h
Normal file
19
lib/include/packet.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user