fix(uart): fifo read may generate load byte instruction

This commit is contained in:
morris
2025-04-08 17:35:04 +08:00
parent 53e84d9729
commit 5655ee9ba8
9 changed files with 10 additions and 10 deletions

View File

@@ -544,7 +544,7 @@ FORCE_INLINE_ATTR uint32_t uart_ll_get_intr_ena_status(uart_dev_t *hw)
FORCE_INLINE_ATTR void uart_ll_read_rxfifo(uart_dev_t *hw, uint8_t *buf, uint32_t rd_len)
{
for (int i = 0; i < (int)rd_len; i++) {
buf[i] = hw->fifo.rxfifo_rd_byte;
buf[i] = hw->fifo.val;
}
}