From 263e58a49717ad13e251ee19c41e62712c7062f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sun, 16 Dec 2012 06:39:58 +0000 Subject: [PATCH] explicitely initialize SPI to start with slow clock --- BaS_gcc/.cproject | 60 +------------------------------------------ BaS_gcc/sources/mmc.c | 2 +- 2 files changed, 2 insertions(+), 60 deletions(-) diff --git a/BaS_gcc/.cproject b/BaS_gcc/.cproject index a6c7af5..7d5eb7b 100644 --- a/BaS_gcc/.cproject +++ b/BaS_gcc/.cproject @@ -39,39 +39,10 @@ - - - - - make - - ram - true - true - true - - - make - - clean - true - true - true - - - make - - all - true - true - true - - - @@ -121,9 +92,8 @@ - - + @@ -132,34 +102,6 @@ - - - - make - - ram - true - true - true - - - make - - clean - true - true - true - - - make - - all - true - true - true - - - diff --git a/BaS_gcc/sources/mmc.c b/BaS_gcc/sources/mmc.c index 074e740..d24d74c 100644 --- a/BaS_gcc/sources/mmc.c +++ b/BaS_gcc/sources/mmc.c @@ -392,7 +392,7 @@ DSTATUS disk_initialize(uint8_t drv) if (Stat & STA_NODISK) return Stat; /* Is card existing in the socket? */ - //FCLK_SLOW(); + FCLK_SLOW(); for (n = 10; n; n--) xchg_spi(0xFF); /* Send 80 dummy clocks */ ty = 0;