mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-11 12:20:55 +00:00
Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
70a5a1e0d6
@ -181,12 +181,13 @@ static inline void leave_rx_state(void) {}
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Clear the RX and TX hardware FIFOs of the state machines.
|
* @brief Clear the FIFO of the RX state machine.
|
||||||
*/
|
*/
|
||||||
inline void serial_transport_driver_clear(void) {
|
inline void serial_transport_driver_clear(void) {
|
||||||
osalSysLock();
|
osalSysLock();
|
||||||
pio_sm_clear_fifos(pio, rx_state_machine);
|
while (!pio_sm_is_rx_fifo_empty(pio, rx_state_machine)) {
|
||||||
pio_sm_clear_fifos(pio, tx_state_machine);
|
pio_sm_clear_fifos(pio, rx_state_machine);
|
||||||
|
}
|
||||||
osalSysUnlock();
|
osalSysUnlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user