RTOS refactoring + more AVR removal

This commit is contained in:
Bertrand Songis
2018-08-05 12:06:48 +02:00
parent f60733b561
commit f3bfde242b
80 changed files with 1111 additions and 1054 deletions
+4 -3
View File
@@ -60,7 +60,7 @@
/* Lock / unlock functions */
/*-----------------------------------------------------------------------*/
#if !defined(BOOT)
static OS_MutexID ioMutex;
static RTOS_MUTEX_HANDLE ioMutex;
int ff_cre_syncobj (BYTE vol, _SYNC_t *mutex)
{
@@ -70,12 +70,13 @@ int ff_cre_syncobj (BYTE vol, _SYNC_t *mutex)
int ff_req_grant (_SYNC_t mutex)
{
return CoEnterMutexSection(mutex) == E_OK;
RTOS_LOCK_MUTEX(mutex);
return 1;
}
void ff_rel_grant (_SYNC_t mutex)
{
CoLeaveMutexSection(mutex);
RTOS_UNLOCK_MUTEX(mutex);
}
int ff_del_syncobj (_SYNC_t mutex)