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. Jack Peacock
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) Amazon Web Services, Inc. or its affiliates. All rights reserved.