ATA8510.c
unsigned char temp,temp0,temp1;
MCU_INIT();
ATA8510_WAKEUP();
while(1)
{
if(P_IRQ)
{
temp=GET_EVENT_BYTE();
if(temp & (1 << 4))
{
temp=GET_RX_FIFO_LENTH();
if(temp&&(temp<=32))
{
READ_ATA8510_BUF(RF_BUFFER,temp);
if(temp==16)
{
;//C处理数据
}
}
else
{
if(temp>32)SET_ATA8510_SYSTEM_MODE(0xA2,0x40);
}
}
}
}
评论