FreeCalypso > hg > freecalypso-sw
diff gsm-fw/services/ffs/task.c @ 218:fee45482aa2a
FFS: hopefully-correct initialization for the FFS_IN_RAM configuration
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 06 Jan 2014 08:43:35 +0000 |
parents | 3ebe6409e8bc |
children | 2beb88a3d528 |
line wrap: on
line diff
--- a/gsm-fw/services/ffs/task.c Mon Jan 06 08:07:36 2014 +0000 +++ b/gsm-fw/services/ffs/task.c Mon Jan 06 08:43:35 2014 +0000 @@ -208,6 +208,9 @@ tmp_int_level = TCD_Interrupt_Level; // Backup Int level TCD_Interrupt_Level = 0xC0; // The Interrups are not yet enabled... +#if FFS_IN_RAM + ffsdrv_ram_init(); +#endif ffs_init_status = ffs_initialize(); TCD_Interrupt_Level = tmp_int_level; // Restore Int level @@ -250,7 +253,7 @@ char *temp_path; req_id_t temp_id; -#if (BOARD == 34) +#if FFS_IN_RAM // Non formatted FFS should be formatted // So we don't have to use PCTM to format it if (fs.initerror == EFFS_NOFORMAT) @@ -258,7 +261,7 @@ ffs_format_nb("/", 0x2BAD, 0); } - ffs_InitRFCap(); + /* ffs_InitRFCap(); */ #endif ttr(TTrTask, "ffs_init() %d" NL, ffs_init_status);