44 #ifdef FAT_CLUSTER_CACHE_ENTRIES
47 for (i=0;i<FAT_CLUSTER_CACHE_ENTRIES;i++)
49 file->cluster_cache_idx[i] = 0xFFFFFFFF;
50 file->cluster_cache_data[i] = 0;
61 #ifdef FAT_CLUSTER_CACHE_ENTRIES
62 uint32 slot = clusterIdx % FAT_CLUSTER_CACHE_ENTRIES;
64 if (
file->cluster_cache_idx[slot] == clusterIdx)
66 *pNextCluster =
file->cluster_cache_data[slot];
78 #ifdef FAT_CLUSTER_CACHE_ENTRIES
79 uint32 slot = clusterIdx % FAT_CLUSTER_CACHE_ENTRIES;
81 if (
file->cluster_cache_idx[slot] == clusterIdx)
82 file->cluster_cache_data[slot] = nextCluster;
85 file->cluster_cache_idx[slot] = clusterIdx;
86 file->cluster_cache_data[slot] = nextCluster;