From b32848ebbdaecff408826cfa7943edb97d6af89d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sun, 16 Dec 2012 12:11:32 +0000 Subject: [PATCH] some transfer timing tests: pretty slow. Fastest I can get is about 16 kBytes/s --- sources/sd_card.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/sd_card.c b/sources/sd_card.c index 5ac2a9a..8dc693d 100644 --- a/sources/sd_card.c +++ b/sources/sd_card.c @@ -72,14 +72,14 @@ void sd_card_init(void) fres = f_open(&file, FLASHCODE_NAME, FA_READ); if (fres == FR_OK) { - uint32_t size; /* length of code piece read */ - uint32_t total_size = 0L; /* * yes, load and execute it * * FIXME: we will need some kind of user confirmation here * to avoid unwanted flashing or "bootsector viruses" before going productive */ + uint32_t size; /* length of code piece read */ + uint32_t total_size = 0L; uint32_t start_time = MCF_SLT_SCNT(0); uint32_t end_time; uint32_t time = 0;