A
amraldo
Guest
Salut, je suis étudiant FreeRTOS. Je came à travers l'API
. Il est une macro définie comme suit:
Est-ce à dire que son compte initial est de 1? - Amr
Code:
vSemaphoreCreateBinary
Code:
# define vSemaphoreCreateBinary (xSemaphore) {\\ = xSemaphore xQueueCreate ((unsigned portBASE_TYPE) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH); \\ if (xSemaphore = NULL!) \\ {\\ XSemaphoreGive (xSemaphore); \\} \\}