////////// // Function Name : Isr_WDT // Function Description : This function is Interrupt Service Routine of WatchDog Timer // Input : NONE // Output : NONE (increment of g_uIntCounterWT value) // Version : v0.1 void Isr_WDT(void) { Outp32(rWTCLRINT ,1); // Watchdog timer interrupt clear g_uIntCounterWT++; UART_Printf("%d ", g_uIntCounterWT); INTC_ClearVectAddr(); }
////////// // Function Name : Isr_UsbOtg // Function Description : USB OTG ISR // Input : NONE // Output : NONE // Version : void __irq Isr_UsbOtg(void) { INTC_Disable(NUM_OTG); OTGDEV_HandleEvent(); INTC_Enable(NUM_OTG); INTC_ClearVectAddr(); }
////////// // Function Name : Isr_TIMER3 // Function Description : This function is Interrupt Service Routine of PWM Timer0 // Input : NONE // Output : NONE (increment of g_uIntCounter0 value) // Version : v0.1 void Isr_TIMER3(void) { u32 uTmp; uTmp = Inp32(rTINT_CSTAT); uTmp = (uTmp & 0x1f) | (1<<8); Outp32(rTINT_CSTAT,uTmp); // Timer3 Interrupt Clear register UART_Printf("Timer3\n"); g_uIntCounter3++; INTC_ClearVectAddr(); }
void Isr_TIMEROS(void) { u32 uTmp; u32 uCnt; uTmp = Inp32(rTINT_CSTAT); for(uCnt = 0 ; uCnt <50 ; uCnt++) UART_Printf("#%d : rTINT_CSTAT = %x\n",uCnt,uTmp); // uTmp = (uTmp & 0x1f)| (1<<5); Outp32(rTINT_CSTAT,uTmp); // Timer0 Interrupt Clear register UART_Printf("Timer0\n"); UART_Printf("IntCounter = %d \n ",g_uIntCounterOS); g_uIntCounterOS++; INTC_ClearVectAddr(); }
void __irq ADCTS_ISR(void) { #if 1 // ORI if ( ADCTS_GetXPStylusIntState() == STYLUS_DOWN ) { g_oADCTSInform.ucTouchStatus = ADCTS_TOUCH_DOWN; } else { g_oADCTSInform.ucTouchStatus = ADCTS_TOUCH_UP; } ADCTS_SetADCClearInt(); ADCTS_SetADCClearWKInt(); INTC_ClearVectAddr(); #else uXDat = ADCTS_GetXPData(); uYDat = ADCTS_GetYPData(); UART_Printf("X : %f, Y : %f\n",uXDat,uYDat); #endif }