root / trunk / bootloader / packet.h @ 199
History | View | Annotate | Download (327 Bytes)
| 1 | #ifndef _PACKET_H_
|
|---|---|
| 2 | #define _PACKET_H_
|
| 3 | |
| 4 | #include <tooltron.h> |
| 5 | #include <avr/eeprom.h> |
| 6 | #include "rs485_poll.h" |
| 7 | #include "bootloader.h" |
| 8 | |
| 9 | /** @brief Max time to wait until we exit the packet handler */
|
| 10 | #define MAX_TIMEOUT 60000 |
| 11 | |
| 12 | char parse_packet(uint8_t *mbuf, uint8_t addr);
|
| 13 | void send_packet(uint8_t cmd, uint8_t addr);
|
| 14 | |
| 15 | |
| 16 | #endif
|