From f3f817d7e96b4d9ef0febaa267b7708641152f96 Mon Sep 17 00:00:00 2001 From: P L Sai Krishna Date: Thu, 23 Jul 2015 12:32:33 +0530 Subject: [PATCH] xilffs: Modified the file size to test on emulation platform. This patch modifies the file size as 8KB to test on emulation platform. Since 8MB in emulation platform taking long time, reduced file size to 8KB. Signed-off-by: P L Sai Krishna Reviewed-by: Harini Katakam --- .../xilffs/examples/xilffs_polled_example.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/sw_services/xilffs/examples/xilffs_polled_example.c b/lib/sw_services/xilffs/examples/xilffs_polled_example.c index daa57058..0e8ae524 100644 --- a/lib/sw_services/xilffs/examples/xilffs_polled_example.c +++ b/lib/sw_services/xilffs/examples/xilffs_polled_example.c @@ -50,6 +50,7 @@ * ----- --- -------- ----------------------------------------------- * 1.00a hk 10/17/13 First release * 2.2 hk 07/28/14 Make changes to enable use of data cache. +* 2.5 sk 07/15/15 Used File size as 8KB to test on emulation platform. * * * @@ -62,6 +63,7 @@ #include "xil_printf.h" #include "ff.h" #include "xil_cache.h" +#include "xplatform_info.h" /************************** Constant Definitions *****************************/ @@ -78,6 +80,7 @@ static FIL fil; /* File object */ static FATFS fatfs; static char FileName[32] = "Test.bin"; static char *SD_File; +u32 Platform; #ifdef __ICCARM__ #pragma data_alignment = 32 @@ -145,6 +148,15 @@ int FfsSdPolledExample(void) u32 FileSize = (8*1024*1024); TCHAR *Path = "0:/"; + Platform = XGetPlatform_Info(); + if (Platform == XPLAT_ZYNQ_ULTRA_MP) { + /* + * Since 8MB in Emulation Platform taking long time, reduced + * file size to 8KB. + */ + FileSize = 8*1024; + } + for(BuffCnt = 0; BuffCnt < FileSize; BuffCnt++){ SourceAddress[BuffCnt] = TEST + BuffCnt; }