ソースを参照

change: fskv,针对Air780EHM/Air8000系列,fskv的读写块改小,以满足更大的空间利用率

Wendal Chen 7 ヶ月 前
コミット
220aa7af18
1 ファイル変更6 行追加0 行削除
  1. 6 0
      components/fskv/luat_fskv.c

+ 6 - 0
components/fskv/luat_fskv.c

@@ -7,9 +7,15 @@
 #define LUAT_LOG_TAG "fskv"
 #include "luat_log.h"
 
+#ifdef TYPE_EC718HM
 #define LFS_BLOCK_DEVICE_READ_SIZE (256)
 #define LFS_BLOCK_DEVICE_PROG_SIZE (256)
 #define LFS_BLOCK_DEVICE_CACHE_SIZE (256)
+#else
+#define LFS_BLOCK_DEVICE_READ_SIZE (4)
+#define LFS_BLOCK_DEVICE_PROG_SIZE (4)
+#define LFS_BLOCK_DEVICE_CACHE_SIZE (4096)
+#endif
 #define LFS_BLOCK_DEVICE_ERASE_SIZE (4096) // one sector 4KB
 //#define LFS_BLOCK_DEVICE_TOTOAL_SIZE (64 * 1024)
 #define LFS_BLOCK_DEVICE_LOOK_AHEAD (16)