我的中断程序如下,怎么实现不了接收字符和发送字符
void Isr_init(void)
{
pISR_UART0=(unsigned int) uart0_Isr;
}
void __irq uart0_Isr(void)
{
unsigned char buf;
if(rSUBSRCPND&(1<<0))
{
buf=rURXH0;
led1_on();
rSUBSRCPND |=(1<<1);
rSRCPND |=(1<<28);
rINTPND |=(1<<28);
rUTXH0=buf;
}
if(rSUBSRCPND&(1<<1))
{
led2_on();
rSUBSRCPND|=1<<1;
rSRCPND|=1<<28;
rINTPND|=1<<28;
}
} |