@@ -278,9 +278,8 @@ static inline void uart_tx_wait_blocking(uart_inst_t *uart) {
278
278
* \ingroup hardware_uart
279
279
*
280
280
* \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.
282
282
*
283
- * \note HW limitations mean this function will return either 0 or 1.
284
283
*/
285
284
static inline bool uart_is_readable (uart_inst_t * uart ) {
286
285
// 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
307
306
/*! \brief Read from the UART
308
307
* \ingroup hardware_uart
309
308
*
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
311
310
*
312
311
* \param uart UART instance. \ref uart0 or \ref uart1
313
312
* \param dst Buffer to accept received bytes
@@ -378,10 +377,10 @@ static inline void uart_puts(uart_inst_t *uart, const char *s) {
378
377
#endif
379
378
}
380
379
381
- /*! \brief Read a single character to UART
380
+ /*! \brief Read a single character from the UART
382
381
* \ingroup hardware_uart
383
382
*
384
- * This function will block until the character has been read
383
+ * This function will block until a character has been read
385
384
*
386
385
* \param uart UART instance. \ref uart0 or \ref uart1
387
386
* \return The character read.
0 commit comments