full queue in ISR
Posted by Jack Peacock
on August 30, 2007
Inside an interrupt ISR for a UART, I receive data and place it in a queue with the xQueueSendFromISR call. Is there a way, inside the ISR, to determine if the queue is full? I want to log if the ISR has to drop characters due to lack of queue space.
RE: full queue in ISR
Posted by Dave
on August 31, 2007
No, this is a bit amiss. You could easily add a parameter to the function to return this information. Or add a version of uxQueueMessagesWaiting that can be called from an interrupt (basically don't use any portENTER/EXIT_CRITICAL_SECTION calls).
Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd..
See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.