osSemaphoreWait (Turnstile2,0xffff);//Lock the second turnstileosSemaphoreRelease(Turnstile);//Unlock the first turnstile}osSemaphoreRelease(Mutex);//Allow other tasks to access the turnstileosSemaphoreWait(Turnstile,0xFFFF);//Turnstile GateosSemaphoreRelease(Turnstile);//--- GATE ---LED_On(LED_...
osSemaphoreWait (Turnstile2,0xffff);//Lock the second turnstileosSemaphoreRelease(Turnstile);//Unlock the first turnstile}osSemaphoreRelease(Mutex);//Allow other tasks to access the turnstileosSemaphoreWait(Turnstile,0xFFFF);//Turnstile GateosSemaphoreRelease(Turnstile);//--- GATE ---LED_On(LED_...