首页 > 编程语言 > 详细

C语言串口测试程序源码

时间:2019-02-08 16:45:44      阅读:154      评论:0      收藏:0      [点我收藏+]

如下的代码内容是关于C语言串口测试程序的代码,应该是对小伙伴们有一些用。
#include<stdio.h>
unsigned int UART0_ADDR = 0x20080000;
unsigned int retu=0;
int i=0;
void delay_x(unsigned short cycles)
{
unsigned short t;
t = cycles;
while ( --t != 0 );
}
int main()
{




while(1)
{
{
retu = retu&0xff;
}
retu = 0;
delay_x(0X7000);
}
return 0;
}




 

C语言串口测试程序源码

原文:https://www.cnblogs.com/mantiger/p/10356294.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!