Revision 199
Bootloader is setup to read the address from the EEPROM now
packet.h | ||
---|---|---|
1 | 1 |
#ifndef _PACKET_H_ |
2 | 2 |
#define _PACKET_H_ |
3 | 3 |
|
4 |
#include "packet.h" |
|
4 |
#include <tooltron.h> |
|
5 |
#include <avr/eeprom.h> |
|
5 | 6 |
#include "rs485_poll.h" |
6 | 7 |
#include "bootloader.h" |
7 | 8 |
|
8 | 9 |
/** @brief Max time to wait until we exit the packet handler */ |
9 | 10 |
#define MAX_TIMEOUT 60000 |
10 | 11 |
|
11 |
char parse_packet(uint8_t *mbuf); |
|
12 |
void send_packet(uint8_t cmd); |
|
12 |
char parse_packet(uint8_t *mbuf, uint8_t addr);
|
|
13 |
void send_packet(uint8_t cmd, uint8_t addr);
|
|
13 | 14 |
|
14 | 15 |
|
15 | 16 |
#endif |
Also available in: Unified diff