ESP-IDF blocking and context switch with UART?
Posted: Mon Jan 15, 2024 8:29 pm
I'm unclear on some really basic concepts in ESP-IDF. If a call to an ESP-IDF function with a timeout is made, will another task run while the call is blocked?
Specifically a library I'm using calls the ESP-IDF function:
with a long timeout. I thought my other tasks would run but they are not. Note there is no hardware flow control on the UART - would that make a difference?
ESP-IDF doc: uart_read_bytes
Specifically a library I'm using calls the ESP-IDF function:
Code: Select all
int uart_read_bytes(uart_port_t uart_num, void* buf, uint32_t length, TickType_t ticks_to_wait);
ESP-IDF doc: uart_read_bytes