void ISR_int0(void) interrupt 0{sta=SPI_Read(STATUS); // read register STATUS's valueif(RX_DR) // if receive data ready(RX_DR)interrupt{SPI_Read_Buf(RD_RX_PLOAD,rx_buf,TX_PLOAD_WIDTH);// read receive payload from RX_FIFO bufferflag=1;}if(MAX_RT){SPI_RW_Reg(FLUSH_TX,0);}SPI_RW_Reg(WRITE_REG+STATUS,sta);// clear RX_DR or TX_DS or MAX_RT interrupt flag}该函数什么意思?尤其是"interrupt 0"什么意思?怎么可以直接放函数后面,不用另起一行?谢谢!!!!谢谢
- 2 回答
- 0 关注
- 91 浏览
添加回答
举报
0/150
提交
取消