Luca Burelli e41e67f2f1 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-08-12 10:52:16 +08:00
..
2021-05-24 02:02:15 +02:00
2021-07-21 13:34:52 +08:00
2021-07-21 13:34:52 +08:00
2021-05-25 17:43:57 +02:00
2021-05-25 17:43:57 +02:00
2021-06-30 18:10:54 +08:00
2021-07-16 14:47:09 +08:00
2021-05-25 17:43:57 +02:00
2021-08-04 10:20:03 +08:00
2021-07-29 17:56:22 +08:00
2021-05-25 17:43:57 +02:00
2021-07-01 19:53:50 +08:00
2021-06-22 15:29:11 +08:00
2021-05-25 17:43:57 +02:00
2021-05-25 17:43:57 +02:00
2021-05-25 17:43:57 +02:00
2021-05-25 17:43:57 +02:00
2021-05-25 17:43:57 +02:00
2021-05-25 17:43:57 +02:00
2021-05-25 17:43:57 +02:00
2021-05-25 17:43:57 +02:00
2021-05-25 17:43:57 +02:00
2021-05-25 17:43:57 +02:00
2021-05-25 17:43:57 +02:00
2021-05-25 17:43:57 +02:00