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.
Fork of IAP by
Revision 2:7484398d50ea, committed 2013-10-22
- Comitter:
- jaerts
- Date:
- Tue Oct 22 17:23:53 2013 +0000
- Parent:
- 1:ff906ad52cf9
- Commit message:
- Implement reinvoke isp function
Changed in this revision
| IAP.cpp | Show annotated file Show diff for this revision Revisions of this file |
| IAP.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/IAP.cpp Mon Nov 26 06:02:24 2012 +0000
+++ b/IAP.cpp Tue Oct 22 17:23:53 2013 +0000
@@ -63,6 +63,22 @@
};
+/** Reinvoke ISP
+ *
+ * @return error code
+ */
+
+int IAP::reinvoke_isp( void ) {
+ __disable_irq();
+
+ IAP_command[ 0 ] = IAPCommand_Reinvoke_ISP;
+
+ iap_entry( IAP_command, IAP_result );
+
+ return ( (int)IAP_result[ 0 ] );
+}
+
+
/** Read part identification number
*
* @return device ID
--- a/IAP.h Mon Nov 26 06:02:24 2012 +0000
+++ b/IAP.h Tue Oct 22 17:23:53 2013 +0000
@@ -256,6 +256,7 @@
*/
IAP() : iap_entry( reinterpret_cast<IAP_call>(IAP_LOCATION) ), cclk_kHz( SystemCoreClock / 1000 ) {}
+ int reinvoke_isp( void );
int read_ID( void );
int read_serial( void );
int blank_check( int start, int end );
