aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/sdc_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-04-30 18:46:09 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-04-30 18:46:09 +0000
commitdd9cac5ffa29031b1175bb750e587a20362f5276 (patch)
treeb1e68e0db116919408cce05e0ce38e408cb70cbd /os/hal/platforms/STM32/sdc_lld.c
parentfc8ea30f6e774ab92b2a44c4eb5e40ae2a9d9d1f (diff)
downloadChibiOS-dd9cac5ffa29031b1175bb750e587a20362f5276.tar.gz
ChibiOS-dd9cac5ffa29031b1175bb750e587a20362f5276.tar.bz2
ChibiOS-dd9cac5ffa29031b1175bb750e587a20362f5276.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2907 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/sdc_lld.c')
-rw-r--r--os/hal/platforms/STM32/sdc_lld.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/sdc_lld.c b/os/hal/platforms/STM32/sdc_lld.c
index 25c7b6897..8517a040d 100644
--- a/os/hal/platforms/STM32/sdc_lld.c
+++ b/os/hal/platforms/STM32/sdc_lld.c
@@ -194,6 +194,12 @@ void sdc_lld_set_bus_mode(SDCDriver *sdcp, sdcbusmode_t mode) {
*/
void sdc_lld_send_cmd_none(SDCDriver *sdcp, uint8_t cmd, uint32_t arg) {
+ (void)sdcp;
+ SDIO->ARG = arg;
+ SDIO->CMD = (uint32_t)cmd | SDIO_CMD_CPSMEN;
+ while ((SDIO->STA & SDIO_STA_CMDSENT) == 0)
+ ;
+ SDIO->ICR = 0xFFFFFFFF;
}
/**