/* Add a delay to debouce the reset switch on development boards ~200ms */
TPM1SC = 0x0D; /*
* Set the Timer module to use BUSCLK as
* reference with Prescaler at / 32
*/
do {
u8TimerHi = TPM1CNTH; /* Get value of timer register (hi byte) */
u8TimerLo = TPM1CNTL; /* Get value of timer register (lo byte) */
} while (u8TimerLo <= 0x80);/*
* Poll for TIMER LO to be greater than
* 0x80 at 4MHz/32
*/
TPM1SC = 0x00; /* Return to reset values */
gu8RTxMode = SYSTEM_RESET_MODE;
GPIOInit();
SPIInit();
IRQInit(); /* Turn on the IRQ pin. */
gu8RTxMode = MC13192_RESET_MODE;
MC13192_RESET = 1; /* Take MC13192 out of reset */
while (u8AttnIrq == FALSE) {
if (IRQFLAG == 1) { /* Check to see if IRQ is asserted */
u16IrqReg = SPIDrvRead(0x24); /*
到这里就运行不下去了,查看MC13213的手册,好象是因为没有中断发生,不知道什么原因?