Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed FastIO FastPWM USBDevice
Diff: FreescaleIAP/FreescaleIAP.h
- Revision:
- 76:7f5912b6340e
- Parent:
- 2:c174f9ee414a
- Child:
- 79:682ae3171a08
--- a/FreescaleIAP/FreescaleIAP.h Sun Jan 29 19:04:47 2017 +0000 +++ b/FreescaleIAP/FreescaleIAP.h Fri Feb 03 20:50:02 2017 +0000 @@ -58,22 +58,10 @@ class FreescaleIAP { public: - FreescaleIAP(); - ~FreescaleIAP(); + FreescaleIAP() { } + ~FreescaleIAP() { } - /** Erase a flash sector - * - * The size erased depends on the used device - * - * @param address address in the sector which needs to be erased - * @param return Success if no errors were encountered, otherwise one of the error states - */ - IAPCode erase_sector(int address); - - /** Program flash - * - * Before programming the used area needs to be erased. The erase state is checked - * before programming, and will return an error if not erased. + /** Program flash. This erases the area to be written, then writes the data. * * @param address starting address where the data needs to be programmed (must be longword alligned: two LSBs must be zero) * @param data pointer to array with the data to program