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: FreescaleIAP mbed
Flash.cpp
00001 #include "mbed.h" 00002 #include "FreescaleIAP.h" 00003 #include "Flash.h" 00004 #include "all_funcs.h" 00005 00006 /*Writing to the Flash*/ 00007 void FCTN_CDMS_WR_FLASH() 00008 { 00009 for(int8_t i=0;i<(20);i++)flasharray[i]=nativeflash[i]; 00010 flasharray[i]=block; 00011 erase_sector(strt_add); 00012 program_flash(strt_add, (char*)&flasharray,20); 00013 } 00014 /*End*/ 00015 00016 /*Reading from Flash*/ 00017 uint32_t FCTN_CDMS_RD_FLASH() 00018 { 00019 for(int8_t i=0;i<(20);i++)flasharray[i]=nativeflash[i]; 00020 return flasharray[i]; 00021 } 00022 /*End*/
Generated on Fri Jul 15 2022 20:19:19 by
1.7.2