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] [March 2010 Threads] xSemaphoreGiveFromISR returnPosted by incrediball on March 31, 2010 According to the documentation xSemaphoreGiveFromISR returns pdTRUE if the semaphore was successfully given, otherwise errQUEUE_FULL. What is the meaning of errQUEUE_FULL? Does it mean that the semaphore was already given?
It would be useful for debugging reasons to know if an interrupt is giving a semaphore without a task taking the semaphore. How can this be accomplished?
RE: xSemaphoreGiveFromISR returnPosted by Richard on April 1, 2010 Yes - semaphores are built on top of queues, so when you get the errQUEUE_FULL return value it means the semaphore cannot be given because it is already there. For example, if it is a binary semaphore, you can take the semaphore successfully, then give it successfully once. Once it is given the semaphore is effectively 'full'. If you attempt to give it again without first taking it again you will get this error code returned.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|