STM32几种操作的寄存器版本和库函数版本对比

版权声明:转载记得声明~~~ :) https://blog.csdn.net/ReCclay/article/details/83145147

1、USART1接收完成标志检测

USART1->SR&0X40 == 0

USART_GetFlagStatus(USART1,USART_FLAG_TC)==RESET

2、USART1发送数据

USART1->DR = (u8) ch;

USART_SendData(USART1,(u8)ch);

猜你喜欢

转载自blog.csdn.net/ReCclay/article/details/83145147