]> Zhao Yanbai Git Server - acecode.git/commitdiff
...
authorAceVest <zhaoyanbai@126.com>
Mon, 17 Jun 2019 05:26:17 +0000 (13:26 +0800)
committerAceVest <zhaoyanbai@126.com>
Mon, 17 Jun 2019 05:26:17 +0000 (13:26 +0800)
learn/stm32/USART.md

index 12076be80fd8014d92cc806eecea9a9225cd2fab..52a8bd89514ef8fac3ed8b40be38dd6add9af7df 100644 (file)
@@ -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