From 58fd763110ba6c1c45d137e5be7321a12dfc9063 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 8 Feb 2014 15:50:16 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6673 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/sdc_lld.c | 3 +++ os/hal/src/sdc.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/os/hal/ports/STM32/LLD/sdc_lld.c b/os/hal/ports/STM32/LLD/sdc_lld.c index c3b95c688..1aca84fb0 100644 --- a/os/hal/ports/STM32/LLD/sdc_lld.c +++ b/os/hal/ports/STM32/LLD/sdc_lld.c @@ -380,6 +380,9 @@ void sdc_lld_start_clk(SDCDriver *sdcp) { SDIO->CLKCR = STM32_SDIO_DIV_LS; SDIO->POWER |= SDIO_POWER_PWRCTRL_0 | SDIO_POWER_PWRCTRL_1; SDIO->CLKCR |= SDIO_CLKCR_CLKEN; + + /* Clock activation delay.*/ + osalThreadSleep(MS2ST(STM32_SDC_CLOCK_ACTIVATION_DELAY)); } /** diff --git a/os/hal/src/sdc.c b/os/hal/src/sdc.c index c75397291..d18f37b55 100644 --- a/os/hal/src/sdc.c +++ b/os/hal/src/sdc.c @@ -200,9 +200,6 @@ bool sdcConnect(SDCDriver *sdcp) { /* Card clock initialization.*/ sdc_lld_start_clk(sdcp); - /* Clock activation delay.*/ - osalThreadSleep(MS2ST(STM32_SDC_CLOCK_ACTIVATION_DELAY)); - /* Enforces the initial card state.*/ sdc_lld_send_cmd_none(sdcp, MMCSD_CMD_GO_IDLE_STATE, 0); -- cgit v1.2.3