
//功能:串口初始化、打开定时器中断,然后一直接收数据状态就好了。发送在中断中实现
#include "stm32f10xh"
#include "usarth"
u8 USART_rx_data;
int main(void)
{
RCC_Configuration(); //系统时钟配置
GPIO_Configuration(); //端口初始化
NVIC_Configuration(); //中断源配置
USART_Configuration(); //串口1初始化
Time_Init(); //定时器初始化
#ifdef DEBUG
debug();
#endif
TIM_Cmd(TIM3,ENABLE);
while(1)
{
}
}
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)