FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2014 Threads]
Hi,
I'm on FreeRTOS v8.0.0. After adding and creating some binary semaphores through calls to
xSemaphoreCreateBinary() I was trying to complete a code section to de-allocate semaphore
variables. My idea was to use vSemaphoreDelete() once semaphore are not needed anymore, but
reading the manual carefully, it says that vSemaphoreDelete() is to be used after vSemaphoreCreateBinary() no reference to xSemaphoreCreateBinary() was made. I'm assuming it should work with xSemaphoreCreateBinary() as well, but I'm asking you to be sure I'm not neglecting anything.
Thanks,
Adalberto
Yes it is fine to call vSemaphoreDelete() on semaphores that are created with either vSemaphoreCreateBinary(), or xSemaphoreCreateBinary() - or any other semaphore for that matter. I will update the docs.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.