8951串口中断
时间:11-11
来源:互联网
点击:
t++;
_nop_();
_nop_();
if(count>timeout) return 1;
}
temp = SBUF;
*str = temp;
str++;
RI=0;
}while(temp!=\n && temp!=\r);
*str=\0;
return 0;
}
void UART_Interrupt(void) interrupt 4
{
char temp;
COMWrite("Interrupt\n");
if(RI)
{
RI=0;
temp=SBUF;
COMPutc(temp);
}
}
void main()
{
InitPort();
InitCOM_Interrupt();
while(1)
{
}//end of(while(1))
}//end of main
8951串口中 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)