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
23 void avr_setlock(u8 bits);
25 //! Read a byte of Flash
26 u8 avr_peekflash(u16 adr);
28 //! Read a byte of EEPROM.
29 u8 avr_peekeeprom(u16 adr);
30 //! Read a byte of EEPROM.
31 u8 avr_pokeeeprom(u16 adr, u8 val);
33 //! Is the AVR ready or busy?
37 //! Performa chip erase.
38 #define AVR_ERASE 0xF0
39 //! Fetch RDY/!BSY byte.
40 #define AVR_RDYBSY 0xF1
42 //! Read Program Memory
43 #define AVR_PEEKPGM 0x80
45 #define AVR_PEEKEEPROM 0x81
47 #define AVR_POKEEEPROM 0x91
49 #define AVR_PEEKLOCK 0x82
51 #define AVR_POKELOCK 0x92
53 #define AVR_PEEKSIG 0x83
55 #define AVR_READFUSES 0x84
56 //! Read calibration byte.
57 #define AVR_READCAL 0x85