Luca Burelli 3691fb9f48 uart: Add missing critical section wrappers around rx_buffered_len
The missing barriers caused uart_get_buffered_data_len() to (very rarely)
return a garbage value. When used in MicroPython, though, this caused
select() to return and a subsequent read() to stall indefinitely until
a char was actually available.

Signed-off-by: Chen Yi Qun <chenyiqun@espressif.com>

Closes https://github.com/espressif/esp-idf/issues/6397
Merges https://github.com/espressif/esp-idf/pull/6396
2021-09-03 15:20:33 +08:00
..
2021-06-17 14:18:21 +08:00
2020-12-03 19:41:59 +08:00
2020-01-22 12:14:38 +08:00
2021-01-27 14:56:33 +08:00
2020-09-30 11:13:17 +08:00
2019-11-21 10:40:49 +08:00
2019-12-13 18:33:15 +08:00
2020-12-03 19:41:59 +08:00