status = INTPEND; //读中断状态寄存器 /* Deal with source of interrupt */ /* RMC source definitions used for CT1, CT2 */ if (status & TIMER0_INT) { Clear_PendingBit(nTIMER0_INT);/* clear the interrupt */
//tm0isr(); /* set the flag */ __OSTickISR(); //Timer0Stop(); //Disable_Int(nTIMER0_INT); // Timer1Stop(); // Disable_Int(nTIMER1_INT); } // else if (status & TIMER1_INT) // { // Clear_PendingBit(nTIMER1_INT);/* clear the interrupt */ //IntCT2++; /* set the flag */ //Timer1Isr(); // tm1isr(); // }