@@ -59,7 +59,7 @@ volatile uint8_t g_uart2_tx_done; /**< uart2 tx done flag */
5959
6060/**
6161 * @brief uart init with 8 data bits, 1 stop bit and no parity
62- * @param[in] baud is the baud rate
62+ * @param[in] baud baud rate
6363 * @return status code
6464 * - 0 success
6565 * - 1 init failed
@@ -111,8 +111,8 @@ uint8_t uart_deinit(void)
111111
112112/**
113113 * @brief uart write data
114- * @param[in] *buf points to a data buffer
115- * @param[in] len is the data length
114+ * @param[in] *buf pointer to a data buffer
115+ * @param[in] len data length
116116 * @return status code
117117 * - 0 success
118118 * - 1 write failed
@@ -151,8 +151,8 @@ uint8_t uart_write(uint8_t *buf, uint16_t len)
151151
152152/**
153153 * @brief uart read data
154- * @param[out] *buf points to a data buffer
155- * @param[in] len is the data length
154+ * @param[out] *buf pointer to a data buffer
155+ * @param[in] len data length
156156 * @return length of the read data
157157 * @note this function will clear all received buffer even read length is less than received length
158158 */
@@ -196,7 +196,7 @@ uint16_t uart_flush(void)
196196
197197/**
198198 * @brief uart print format data
199- * @param[in] fmt is the format data
199+ * @param[in] fmt format data
200200 * @return length of the sent data
201201 * @note none
202202 */
@@ -226,7 +226,7 @@ uint16_t uart_print(const char *const fmt, ...)
226226
227227/**
228228 * @brief uart2 init with 8 data bits, 1 stop bit and no parity
229- * @param[in] baud is the baud rate
229+ * @param[in] baud baud rate
230230 * @return status code
231231 * - 0 success
232232 * - 1 init failed
@@ -278,8 +278,8 @@ uint8_t uart2_deinit(void)
278278
279279/**
280280 * @brief uart2 write data
281- * @param[in] *buf points to a data buffer
282- * @param[in] len is the data length
281+ * @param[in] *buf pointer to a data buffer
282+ * @param[in] len data length
283283 * @return status code
284284 * - 0 success
285285 * - 1 write failed
@@ -318,8 +318,8 @@ uint8_t uart2_write(uint8_t *buf, uint16_t len)
318318
319319/**
320320 * @brief uart2 read data
321- * @param[out] *buf points to a data buffer
322- * @param[in] len is the data length
321+ * @param[out] *buf pointer to a data buffer
322+ * @param[in] len data length
323323 * @return length of the read data
324324 * @note this function will clear all received buffer even read length is less than received length
325325 */
@@ -363,7 +363,7 @@ uint16_t uart2_flush(void)
363363
364364/**
365365 * @brief uart get the handle
366- * @return points to a uart handle
366+ * @return pointer to a uart handle
367367 * @note none
368368 */
369369UART_HandleTypeDef * uart_get_handle (void )
@@ -373,7 +373,7 @@ UART_HandleTypeDef* uart_get_handle(void)
373373
374374/**
375375 * @brief uart2 get the handle
376- * @return points to a uart handle
376+ * @return pointer to a uart handle
377377 * @note none
378378 */
379379UART_HandleTypeDef * uart2_get_handle (void )
0 commit comments