![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A fork of mAVRISP by Aaron Berk. This version does not use a local file system to hold the AVR program. Instead it uses a serial connection to a PC and a python script to send the AVR program to the mbed.
Fork of mAVRISP by
Diff: AVR910.h
- Revision:
- 3:df6782d01720
- Parent:
- 2:99c56829a2a8
diff -r 99c56829a2a8 -r df6782d01720 AVR910.h --- a/AVR910.h Thu Sep 09 11:11:37 2010 +0000 +++ b/AVR910.h Sat Jan 31 21:54:05 2015 +0000 @@ -45,7 +45,7 @@ * Defines */ -#define PATH_TO_BINARY "/local/AVRCODE.bin" +#define PATH_TO_BINARY "local/T.bin" //Commands #define ATMEL_VENDOR_CODE 0x1E @@ -103,6 +103,7 @@ * -1 => Problem during programming. */ int program(FILE* binary, int pageSize, int numPages = 1); + int programData(char* myData, int fileSize, int pageSize, int numPages = 1); /** * Set the frequency of the SPI communication. @@ -207,6 +208,7 @@ * -1 -> Binary file was not written correctly. */ int checkMemory(int numPages, FILE* binary); + int checkMemoryData(int numPages, char* myData, int fileSize); SPI spi_; DigitalOut nReset_;