CMSIS semaphore fix
This commit is contained in:
parent
93c0ce25fe
commit
bc32c99d1a
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue