projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Better sniffing of 802.15.4 in CCSPI, but the length is still wrong.
[goodfet]
/
firmware
/
include
/
avr.h
diff --git
a/firmware/include/avr.h
b/firmware/include/avr.h
index
930ab99
..
bcf76ef
100644
(file)
--- a/
firmware/include/avr.h
+++ b/
firmware/include/avr.h
@@
-3,7
+3,13
@@
\brief AVR SPI Programmer
*/
\brief AVR SPI Programmer
*/
+#ifndef AVR_H
+#define AVR_H
+
#include "spi.h"
#include "spi.h"
+#include "app.h"
+
+#define AVR 0x32
//! Setup the AVR pins.
void avrsetup();
//! Setup the AVR pins.
void avrsetup();
@@
-34,7
+40,7
@@
u8 avr_pokeeeprom(u16 adr, u8 val);
u8 avr_isready();
//Command codes.
u8 avr_isready();
//Command codes.
-//! Perform
a
chip erase.
+//! Perform
a
chip erase.
#define AVR_ERASE 0xF0
//! Fetch RDY/!BSY byte.
#define AVR_RDYBSY 0xF1
#define AVR_ERASE 0xF0
//! Fetch RDY/!BSY byte.
#define AVR_RDYBSY 0xF1
@@
-55,3
+61,9
@@
u8 avr_isready();
#define AVR_READFUSES 0x84
//! Read calibration byte.
#define AVR_READCAL 0x85
#define AVR_READFUSES 0x84
//! Read calibration byte.
#define AVR_READCAL 0x85
+//! Bulk load data
+#define AVR_BULKLOAD 0x86
+
+extern app_t const avr_app;
+
+#endif // AVR_H