From 51b065f7dd59b51b5bbb9fbec418f408c0c39689 Mon Sep 17 00:00:00 2001 From: AceVest Date: Mon, 17 Jun 2019 13:26:17 +0800 Subject: [PATCH] ... --- learn/stm32/USART.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/learn/stm32/USART.md b/learn/stm32/USART.md index 12076be..52a8bd8 100644 --- a/learn/stm32/USART.md +++ b/learn/stm32/USART.md @@ -99,4 +99,14 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { return ReceiveUsartData(&usart2_data, huart); } } +``` + +``` + // main.c + InitUsartTransfer(); + + while (1) + { + TransferUsartData(); + } ``` \ No newline at end of file -- 2.44.0