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
22 //! Read a byte of Flash
23 u8 avr_peekflash(u16 adr);
25 //! Read a byte of EEPROM.
26 u8 avr_peekeeprom(u16 adr);
27 //! Read a byte of EEPROM.
28 u8 avr_pokeeeprom(u16 adr, u8 val);
30 //! Is the AVR ready or busy?
34 //! Performa chip erase.
35 #define AVR_ERASE 0xF0
36 //! Fetch RDY/!BSY byte.
37 #define AVR_RDYBSY 0xF1
39 //! Read Program Memory
40 #define AVR_PEEKPGM 0x80
42 #define AVR_PEEKEEPROM 0x81
44 #define AVR_POKEEEPROM 0x91
46 #define AVR_PEEKLOCK 0x82
48 #define AVR_PEEKSIG 0x83
50 #define AVR_READFUSES 0x84
51 //! Read calibration byte.
52 #define AVR_READCAL 0x85