Removed mutual exclusion on card-detection functions.
@@ -107,16 +107,8 @@ | ||
107 | 107 | MMCDriver *mmcp = (MMCDriver *)instance; |
108 | 108 | bool err; |
109 | 109 | |
110 | -#if MMC_USE_MUTUAL_EXCLUSION == TRUE | |
111 | - spiAcquireBus(mmcp->config->spip); | |
112 | -#endif | |
113 | - | |
114 | 110 | err = mmcIsCardInserted(mmcp); |
115 | 111 | |
116 | -#if MMC_USE_MUTUAL_EXCLUSION == TRUE | |
117 | - spiReleaseBus(mmcp->config->spip); | |
118 | -#endif | |
119 | - | |
120 | 112 | return err; |
121 | 113 | } |
122 | 114 |
@@ -124,16 +116,8 @@ | ||
124 | 116 | MMCDriver *mmcp = (MMCDriver *)instance; |
125 | 117 | bool err; |
126 | 118 | |
127 | -#if MMC_USE_MUTUAL_EXCLUSION == TRUE | |
128 | - spiAcquireBus(mmcp->config->spip); | |
129 | -#endif | |
130 | - | |
131 | 119 | err = mmcIsCardInserted(mmcp); |
132 | 120 | |
133 | -#if MMC_USE_MUTUAL_EXCLUSION == TRUE | |
134 | - spiReleaseBus(mmcp->config->spip); | |
135 | -#endif | |
136 | - | |
137 | 121 | return err; |
138 | 122 | } |
139 | 123 |