diff --git a/include/tabby/avr/buffer.h b/include/tabby/avr/buffer.h new file mode 100644 index 0000000..ef3dbc5 --- /dev/null +++ b/include/tabby/avr/buffer.h @@ -0,0 +1,21 @@ +#ifndef _TABBY_AVR_BUFFER_H +#define _TABBY_AVR_BUFFER_H + +#include + +#include + +#define TABBY_AVR_BUFFER_SIZE 1024 + +typedef struct _tabby_avr_buffer { + uint16_t len, + cur; + + union { + tabby_packet header; + + uint8_t data[TABBY_AVR_BUFFER_SIZE]; + }; +} tabby_avr_buffer; + +#endif /* _TABBY_AVR_BUFFER_H */