4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 16:03:31 +08:00

Update drv_usart.c

添加函数说明
This commit is contained in:
周传福 2019-05-16 12:37:25 +08:00 committed by GitHub
parent 18d24cfd8d
commit 77daf413be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -631,6 +631,14 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
uart = (struct stm32_uart *)huart; uart = (struct stm32_uart *)huart;
dma_isr(&uart->serial); dma_isr(&uart->serial);
} }
/**
* @brief Rx Half transfer completed callback
* @param huart: UART handle
* @note This example shows a simple way to report end of DMA Rx Half transfer,
* and you can add your own implementation.
* @retval None
*/
void HAL_UART_RxHalfCpltCallback(UART_HandleTypeDef *huart) void HAL_UART_RxHalfCpltCallback(UART_HandleTypeDef *huart)
{ {
struct stm32_uart *uart; struct stm32_uart *uart;