diff gsm-fw/L1/cust0/l1_cust.c @ 890:452a4aea3fc5

gsm-fw: implemented reading of Pirelli's factory calibration records
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 29 Jun 2015 21:45:23 +0000
parents a60b375014e3
children
line wrap: on
line diff
--- a/gsm-fw/L1/cust0/l1_cust.c	Sun Jun 28 16:52:06 2015 +0000
+++ b/gsm-fw/L1/cust0/l1_cust.c	Mon Jun 29 21:45:23 2015 +0000
@@ -469,6 +469,13 @@
     NULL,                          0,                   0 // terminator
 };
 
+#if CONFIG_TARGET_PIRELLI
+extern int pirelli_cal_fread(const char *name, void *userbuf, T_FFS_SIZE size);
+#define	cal_fread	pirelli_cal_fread
+#else
+#define	cal_fread	ffs_file_read
+#endif
+
 void config_ffs_read(char type)
 {
   config_rf_read(type);
@@ -488,7 +495,7 @@
     while (file->name != NULL)
     {
         if (type == '*' || type == file->name[0]) {
-            ffs_fread(&file->name[1], file->addr, file->size);
+            cal_fread(&file->name[1], file->addr, file->size);
         }
         file++;
     }
@@ -547,7 +554,7 @@
 #endif /*if (L1_FF_MULTIBAND == 0)*/
 
             if (read == 1)
-              ffs_fread(name, p, f1->size);
+              cal_fread(name, p, f1->size);
             else //write == 0
             {
               ffs_fwrite(name, p, f1->size);