Skip to content

Commit b3bf690

Browse files
authored
Clarify uart_write_blocking() API vs UART still busy sending (#1274) (#1709)
1 parent 9f85f25 commit b3bf690

File tree

1 file changed

+3
-0
lines changed
  • src/rp2_common/hardware_uart/include/hardware

1 file changed

+3
-0
lines changed

src/rp2_common/hardware_uart/include/hardware/uart.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ static inline bool uart_is_readable(uart_inst_t *uart) {
312312
* \ingroup hardware_uart
313313
*
314314
* This function will block until all the data has been sent to the UART transmit buffer
315+
* hardware. Note: Serial data transmission will continue until the Tx FIFO and
316+
* the transmit shift register (not programmer-accessible) are empty.
317+
* To ensure the UART FIFO has been emptied, you can use \ref uart_tx_wait_blocking()
315318
*
316319
* \param uart UART instance. \ref uart0 or \ref uart1
317320
* \param src The bytes to send

0 commit comments

Comments
 (0)