Skip to content

Commit a916761

Browse files
authored
issue 1219, minor improvements to doxygen comments (#1223)
1 parent 795d021 commit a916761

File tree

1 file changed

+4
-5
lines changed
  • src/rp2_common/hardware_uart/include/hardware

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,8 @@ static inline void uart_tx_wait_blocking(uart_inst_t *uart) {
278278
* \ingroup hardware_uart
279279
*
280280
* \param uart UART instance. \ref uart0 or \ref uart1
281-
* \return 0 if no data available, otherwise the number of bytes, at least, that can be read
281+
* \return true if the RX FIFO is not empty, otherwise false.
282282
*
283-
* \note HW limitations mean this function will return either 0 or 1.
284283
*/
285284
static inline bool uart_is_readable(uart_inst_t *uart) {
286285
// PL011 doesn't expose levels directly, so return values are only 0 or 1
@@ -307,7 +306,7 @@ static inline void uart_write_blocking(uart_inst_t *uart, const uint8_t *src, si
307306
/*! \brief Read from the UART
308307
* \ingroup hardware_uart
309308
*
310-
* This function will block until all the data has been received from the UART
309+
* This function blocks until len characters have been read from the UART
311310
*
312311
* \param uart UART instance. \ref uart0 or \ref uart1
313312
* \param dst Buffer to accept received bytes
@@ -378,10 +377,10 @@ static inline void uart_puts(uart_inst_t *uart, const char *s) {
378377
#endif
379378
}
380379

381-
/*! \brief Read a single character to UART
380+
/*! \brief Read a single character from the UART
382381
* \ingroup hardware_uart
383382
*
384-
* This function will block until the character has been read
383+
* This function will block until a character has been read
385384
*
386385
* \param uart UART instance. \ref uart0 or \ref uart1
387386
* \return The character read.

0 commit comments

Comments
 (0)