[nv14] fixed diskio

This commit is contained in:
Raphael Coeffic
2021-07-31 17:55:01 +02:00
parent b8ee83da32
commit 8b480fc276
+2 -7
View File
@@ -35,7 +35,7 @@
/* Lock / unlock functions */
/*-----------------------------------------------------------------------*/
#if !defined(BOOT)
static OS_MutexID ioMutex;
static RTOS_MUTEX_HANDLE ioMutex;
uint32_t ioMutexReq = 0, ioMutexRel = 0;
int ff_cre_syncobj (BYTE vol, FF_SYNC_t *mutex)
{
@@ -327,12 +327,7 @@ void sdInit(void)
void sdInit()
{
TRACE("sdInit");
ioMutex = CoCreateMutex();
if (ioMutex >= CFG_MAX_MUTEX) {
// sd error
return;
}
RTOS_CREATE_MUTEX(ioMutex);
sdMount();
}