Skip to content

Commit

Permalink
Clarify uart write
Browse files Browse the repository at this point in the history
will block until data "has been sent to the UART transmit buffer"

Fixes raspberrypi#1481
  • Loading branch information
peterharperuk committed Jul 23, 2024
1 parent c449e57 commit e6d07db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rp2_common/hardware_uart/include/hardware/uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ static inline bool uart_is_readable(uart_inst_t *uart) {
/*! \brief Write to the UART for transmission.
* \ingroup hardware_uart
*
* This function will block until all the data has been sent to the UART
* This function will block until all the data has been sent to the UART transmit buffer
*
* \param uart UART instance. \ref uart0 or \ref uart1
* \param src The bytes to send
Expand Down Expand Up @@ -393,7 +393,7 @@ static inline void uart_read_blocking(uart_inst_t *uart, uint8_t *dst, size_t le
/*! \brief Write single character to UART for transmission.
* \ingroup hardware_uart
*
* This function will block until the entire character has been sent
* This function will block until the entire character has been sent to the UART transmit buffer
*
* \param uart UART instance. \ref uart0 or \ref uart1
* \param c The character to send
Expand All @@ -405,7 +405,7 @@ static inline void uart_putc_raw(uart_inst_t *uart, char c) {
/*! \brief Write single character to UART for transmission, with optional CR/LF conversions
* \ingroup hardware_uart
*
* This function will block until the character has been sent
* This function will block until the character has been sent to the UART transmit buffer
*
* \param uart UART instance. \ref uart0 or \ref uart1
* \param c The character to send
Expand All @@ -422,7 +422,7 @@ static inline void uart_putc(uart_inst_t *uart, char c) {
/*! \brief Write string to UART for transmission, doing any CR/LF conversions
* \ingroup hardware_uart
*
* This function will block until the entire string has been sent
* This function will block until the entire string has been sent to the UART transmit buffer
*
* \param uart UART instance. \ref uart0 or \ref uart1
* \param s The null terminated string to send
Expand Down

0 comments on commit e6d07db

Please sign in to comment.