aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-08 15:50:16 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-08 15:50:16 +0000
commit58fd763110ba6c1c45d137e5be7321a12dfc9063 (patch)
treefc4a138a32f06674c9e98e8ee6a251b7d6e1c6d7 /os
parent57d5ba67c58f5226a9ddc8c58a01c29d71772c08 (diff)
downloadChibiOS-58fd763110ba6c1c45d137e5be7321a12dfc9063.tar.gz
ChibiOS-58fd763110ba6c1c45d137e5be7321a12dfc9063.tar.bz2
ChibiOS-58fd763110ba6c1c45d137e5be7321a12dfc9063.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6673 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/STM32/LLD/sdc_lld.c3
-rw-r--r--os/hal/src/sdc.c3
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);