[nv14] fixed diskio
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
/* Lock / unlock functions */
|
/* Lock / unlock functions */
|
||||||
/*-----------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------*/
|
||||||
#if !defined(BOOT)
|
#if !defined(BOOT)
|
||||||
static OS_MutexID ioMutex;
|
static RTOS_MUTEX_HANDLE ioMutex;
|
||||||
uint32_t ioMutexReq = 0, ioMutexRel = 0;
|
uint32_t ioMutexReq = 0, ioMutexRel = 0;
|
||||||
int ff_cre_syncobj (BYTE vol, FF_SYNC_t *mutex)
|
int ff_cre_syncobj (BYTE vol, FF_SYNC_t *mutex)
|
||||||
{
|
{
|
||||||
@@ -327,12 +327,7 @@ void sdInit(void)
|
|||||||
void sdInit()
|
void sdInit()
|
||||||
{
|
{
|
||||||
TRACE("sdInit");
|
TRACE("sdInit");
|
||||||
|
RTOS_CREATE_MUTEX(ioMutex);
|
||||||
ioMutex = CoCreateMutex();
|
|
||||||
if (ioMutex >= CFG_MAX_MUTEX) {
|
|
||||||
// sd error
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
sdMount();
|
sdMount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user