#define PROTOCOL_KISS 0x01
#define PROTOCOL_RAW 0x02

#define m1284p 0x02

#define START_FROM_BOOTLOADER 0x01
#define START_FROM_POWERON 0x02
#define START_FROM_BROWNOUT 0x03
#define START_FROM_JTAG 0x04

#define MODE_AFSK_300 0x01
#define MODE_AFSK_1200 0x02
#define MODE_AFSK_2400 0x03