Page 1 of 1

UART char timestamping

Posted: Tue Jan 16, 2024 3:23 pm
by EGSJLS
Hello,

I would like to know if it's possible to configure and setup two UART driver in such a way that every RX incoming char is timestamped with the current time (cpu cycles or us). Baudrate is 115200.

So theoretically for each UART a RX buffer with size 1 which triggers the ISR and writes the char from the RX buffer into another buffer with the timestamp for later use.

Just setting the driver buffer size to 1 doesn't work. I would like some advice at how to approach this with ESP-IDF .

Thanks!