projects
/
lwext4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update stm32f429disco demo
[lwext4.git]
/
demos
/
stm32f429_disco
/
main.c
diff --git
a/demos/stm32f429_disco/main.c
b/demos/stm32f429_disco/main.c
index 6f667274bd8075ce211a3fe63ffc6ce09daad2a4..235cbdd7ce00d19fbe7765343a699bcfdd1be808 100644
(file)
--- a/
demos/stm32f429_disco/main.c
+++ b/
demos/stm32f429_disco/main.c
@@
-42,7
+42,7
@@
#include <ext4.h>
\r
\r
/**@brief Read-write size*/
\r
#include <ext4.h>
\r
\r
/**@brief Read-write size*/
\r
-#define READ_WRITE_SZIZE 1024 *
8
\r
+#define READ_WRITE_SZIZE 1024 *
16
\r
\r
/**@brief Delay test (slower LCD scroll)*/
\r
#define TEST_DELAY_MS 2000
\r
\r
/**@brief Delay test (slower LCD scroll)*/
\r
#define TEST_DELAY_MS 2000
\r
@@
-54,10
+54,10
@@
char input_name[128] = "ext2";
static int rw_szie = READ_WRITE_SZIZE;
\r
\r
/**@brief Read-write size*/
\r
static int rw_szie = READ_WRITE_SZIZE;
\r
\r
/**@brief Read-write size*/
\r
-static int rw_count = 100;
\r
+static int rw_count = 100
0
;
\r
\r
/**@brief Directory test count*/
\r
\r
/**@brief Directory test count*/
\r
-static int dir_cnt = 50;
\r
+static int dir_cnt = 50
0
;
\r
\r
/**@brief Static or dynamic cache mode*/
\r
static bool cache_mode = false;
\r
\r
/**@brief Static or dynamic cache mode*/
\r
static bool cache_mode = false;
\r
@@
-221,7
+221,7
@@
static bool dir_test(int len)
sprintf(path, "/mp/dir1/f%d", i);
\r
r = ext4_fopen(&f, path, "wb");
\r
if(r != EOK){
\r
sprintf(path, "/mp/dir1/f%d", i);
\r
r = ext4_fopen(&f, path, "wb");
\r
if(r != EOK){
\r
- printf("Unable to create file in directory: /mp/dir1
\n"
);
\r
+ printf("Unable to create file in directory: /mp/dir1
r = %d\n", r
);
\r
return false;
\r
}
\r
}
\r
return false;
\r
}
\r
}
\r