From: AceVest Date: Mon, 17 Jun 2019 05:26:17 +0000 (+0800) Subject: ... X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/named-checkconf.html?a=commitdiff_plain;h=51b065f7dd59b51b5bbb9fbec418f408c0c39689;p=acecode.git ... --- 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