Removed mutual exclusion on card-detection functions.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15848 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
239366ca0a
commit
7891b55c05
|
@ -107,16 +107,8 @@ static bool mmc_is_card_inserted(void *instance) {
|
|||
MMCDriver *mmcp = (MMCDriver *)instance;
|
||||
bool err;
|
||||
|
||||
#if MMC_USE_MUTUAL_EXCLUSION == TRUE
|
||||
spiAcquireBus(mmcp->config->spip);
|
||||
#endif
|
||||
|
||||
err = mmcIsCardInserted(mmcp);
|
||||
|
||||
#if MMC_USE_MUTUAL_EXCLUSION == TRUE
|
||||
spiReleaseBus(mmcp->config->spip);
|
||||
#endif
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
|
@ -124,16 +116,8 @@ static bool mmc_is_write_protected(void *instance) {
|
|||
MMCDriver *mmcp = (MMCDriver *)instance;
|
||||
bool err;
|
||||
|
||||
#if MMC_USE_MUTUAL_EXCLUSION == TRUE
|
||||
spiAcquireBus(mmcp->config->spip);
|
||||
#endif
|
||||
|
||||
err = mmcIsCardInserted(mmcp);
|
||||
|
||||
#if MMC_USE_MUTUAL_EXCLUSION == TRUE
|
||||
spiReleaseBus(mmcp->config->spip);
|
||||
#endif
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue