CMSIS semaphore fix

This commit is contained in:
inmarket 2015-10-26 18:39:19 +10:00
parent 93c0ce25fe
commit bc32c99d1a

View File

@ -43,9 +43,9 @@ void gfxSemInit(gfxSem* psem, semcount_t val, semcount_t limit)
osSemaphoreDef_t def;
def.semaphore = psem->semaphore;
(void)limit;
psem->id = osSemaphoreCreate(&def, val);
psem->id = osSemaphoreCreate(&def, limit);
while(val--)
osSemaphoreRelease(psem->id);
}
void gfxSemDestroy(gfxSem* psem)