C语言串口测试程序源码

如下的代码内容是关于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;
}




猜你喜欢

转载自www.cnblogs.com/mantiger/p/10356294.html
今日推荐