• R/O
  • SSH
  • HTTPS

chibios: 提交


Commit MetaInfo

修订版15848 (tree)
时间2022-11-23 02:38:02
作者gdisirio

Log Message

Removed mutual exclusion on card-detection functions.

更改概述

差异

--- trunk/os/hal/src/hal_mmc_spi.c (revision 15847)
+++ trunk/os/hal/src/hal_mmc_spi.c (revision 15848)
@@ -107,16 +107,8 @@
107107 MMCDriver *mmcp = (MMCDriver *)instance;
108108 bool err;
109109
110-#if MMC_USE_MUTUAL_EXCLUSION == TRUE
111- spiAcquireBus(mmcp->config->spip);
112-#endif
113-
114110 err = mmcIsCardInserted(mmcp);
115111
116-#if MMC_USE_MUTUAL_EXCLUSION == TRUE
117- spiReleaseBus(mmcp->config->spip);
118-#endif
119-
120112 return err;
121113 }
122114
@@ -124,16 +116,8 @@
124116 MMCDriver *mmcp = (MMCDriver *)instance;
125117 bool err;
126118
127-#if MMC_USE_MUTUAL_EXCLUSION == TRUE
128- spiAcquireBus(mmcp->config->spip);
129-#endif
130-
131119 err = mmcIsCardInserted(mmcp);
132120
133-#if MMC_USE_MUTUAL_EXCLUSION == TRUE
134- spiReleaseBus(mmcp->config->spip);
135-#endif
136-
137121 return err;
138122 }
139123
Show on old repository browser