![](/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:
- 1:276f6df4be7a
- Parent:
- 0:3066745764a5
- Child:
- 2:99c56829a2a8
diff -r 3066745764a5 -r 276f6df4be7a AVR910.h --- a/AVR910.h Tue Aug 31 14:09:53 2010 +0000 +++ b/AVR910.h Wed Sep 01 10:22:51 2010 +0000 @@ -91,11 +91,16 @@ * * @param binary File pointer to the binary file to be loaded onto the * AVR microcontroller. + * @param pageSize The size of one page on the device. If the device does + * not use paged memory, set this as the size of memory of + * the device. + * @param numPages The number of pages on the device. If the device does + * not use paged memory, set this to 1 (default). * * @return 0 => AVR microcontroller programmed successfully. * -1 => Problem during programming. */ - int program(FILE* binary); + int program(FILE* binary, int pageSize, int numPages = 1); /** * Set the frequency of the SPI communication.