Aaron Berk
/
mAVRISP
Program an AVR microcontroller using mbed.
Diff: AVR910.h
- Revision:
- 1:276f6df4be7a
- Parent:
- 0:3066745764a5
- Child:
- 2:99c56829a2a8
--- 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.