![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
vr1.1
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of CDMS_RTOS_v1_1 by
Flash.cpp
- Committer:
- cholletisaik777
- Date:
- 2015-07-17
- Revision:
- 16:7428828a5da2
- Parent:
- 11:d6dc9074075b
File content as of revision 16:7428828a5da2:
#include "mbed.h" #include "FreescaleIAP.h" #include "Flash.h" #include "all_funcs.h" /*Writing to the Flash*/ void FCTN_CDMS_WR_FLASH(uint16_t i,uint32_t block) { for(int64_t i=0;i<(256+(3*1024));i++)flasharray[i]=nativeflash[i]; flasharray[i]=block; erase_sector(strt_add); program_flash(strt_add, (char*)&flasharray,4*(256+(1024*3))); } /*End*/ /*Reading from Flash*/ uint32_t FCTN_CDMS_RD_FLASH(uint16_t i) { for(int64_t i=0;i<(256+(3*1024));i++)flasharray[i]=nativeflash[i]; return flasharray[i]; } /*End*/