FreeCalypso > hg > freecalypso-sw
diff gsm-fw/services/ffs/task.c @ 861:6ffebb8cec78
implemented feature mokoffs copy; made it part of the gtamodem-gsm config
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 03 May 2015 05:10:58 +0000 |
parents | d779078abe40 |
children |
line wrap: on
line diff
--- a/gsm-fw/services/ffs/task.c Sun May 03 04:11:41 2015 +0000 +++ b/gsm-fw/services/ffs/task.c Sun May 03 05:10:58 2015 +0000 @@ -210,8 +210,12 @@ tmp_int_level = TCD_Interrupt_Level; // Backup Int level TCD_Interrupt_Level = 0xC0; // The Interrups are not yet enabled.. #if FFS_IN_RAM +#if CONFIG_MOKOFFS_COPY + bcopy_32byte_chunks(0x380000, _RAMFFS_area, 0x70000); +#else memset(_RAMFFS_area, 0xFF, RAMFFS_TOTAL_SIZE); #endif +#endif ffs_init_status = ffs_initialize(); TCD_Interrupt_Level = tmp_int_level; // Restore Int level @@ -254,7 +258,7 @@ char *temp_path; req_id_t temp_id; -#if FFS_IN_RAM +#if FFS_IN_RAM && !CONFIG_MOKOFFS_COPY // Non formatted FFS should be formatted // So we don't have to use PCTM to format it if (fs.initerror == EFFS_NOFORMAT)