projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Early support for 2254 on the GoodFET30.
[goodfet]
/
firmware
/
include
/
avr.h
diff --git
a/firmware/include/avr.h
b/firmware/include/avr.h
index
75cd504
..
9d71b24
100644
(file)
--- a/
firmware/include/avr.h
+++ b/
firmware/include/avr.h
@@
-14,8
+14,20
@@
void avrconnect();
//! Enable AVR programming mode.
void avr_prgen();
//! Read AVR device code.
//! Enable AVR programming mode.
void avr_prgen();
//! Read AVR device code.
-u8 avr_devicecode();
+u8 avr_sig(u8 i);
+//! Erase an AVR device
+void avr_erase();
+//! Read lock bits.
+u8 avr_lockbits();
+
+
+//! Read a byte of EEPROM.
+u8 avr_peekeeprom(u16 adr);
+//! Read a byte of EEPROM.
+u8 avr_pokeeeprom(u16 adr, u8 val);
+//! Is the AVR ready or busy?
+u8 avr_isready();
//Command codes.
//! Performa chip erase.
//Command codes.
//! Performa chip erase.
@@
-27,6
+39,8
@@
u8 avr_devicecode();
#define AVR_PEEKPGM 0x80
//! Read EEPROM
#define AVR_PEEKEEPROM 0x81
#define AVR_PEEKPGM 0x80
//! Read EEPROM
#define AVR_PEEKEEPROM 0x81
+//! Write EEPROM
+#define AVR_POKEEEPROM 0x91
//! Read lock bits.
#define AVR_PEEKLOCK 0x82
//! Read signature.
//! Read lock bits.
#define AVR_PEEKLOCK 0x82
//! Read signature.