2 \author Travis Goodspeed
3 \brief AVR SPI Programmer
8 //! Setup the AVR pins.
11 //! Initialized an attached AVR.
14 //! Enable AVR programming mode.
16 //! Read AVR device code.
18 //! Erase an AVR device
24 //! Read a byte of EEPROM.
25 u8 avr_peekeeprom(u16 adr);
26 //! Read a byte of EEPROM.
27 u8 avr_pokeeeprom(u16 adr, u8 val);
29 //! Is the AVR ready or busy?
33 //! Performa chip erase.
34 #define AVR_ERASE 0xF0
35 //! Fetch RDY/!BSY byte.
36 #define AVR_RDYBSY 0xF1
38 //! Read Program Memory
39 #define AVR_PEEKPGM 0x80
41 #define AVR_PEEKEEPROM 0x81
43 #define AVR_POKEEEPROM 0x91
45 #define AVR_PEEKLOCK 0x82
47 #define AVR_PEEKSIG 0x83
49 #define AVR_READFUSES 0x84
50 //! Read calibration byte.
51 #define AVR_READCAL 0x85