ESP32 CAN fast receive-check
Posted: Wed Dec 18, 2019 10:24 pm
Hello,
I need a quicker query whether a new message has arrived. 3ms, even one ms is too long. When a message arrives, I have enough time to evaluate it or wait until the queue is full ... but not for the check in the working-loop.
What is a faster alternative to the standard question:
if (xQueueReceive(CAN_cfg.rx_queue, &rx_frame, 3 * portTICK_PERIOD_MS) == pdTRUE)
{.....}
???
Thanx
I need a quicker query whether a new message has arrived. 3ms, even one ms is too long. When a message arrives, I have enough time to evaluate it or wait until the queue is full ... but not for the check in the working-loop.
What is a faster alternative to the standard question:
if (xQueueReceive(CAN_cfg.rx_queue, &rx_frame, 3 * portTICK_PERIOD_MS) == pdTRUE)
{.....}
???
Thanx