Interrupt service function:
GPIOBankIntDisable(SOC_GPIO_0_REGS, 0); // Disable GPIO BANK 0 interrupt
IntEventClear(SYS_INT_GPIO_B0INT); // Clear GPIO BANK 0 interrupt status
………………; //Execute a short interrupt function.
GPIOBankIntEnable(SOC_GPIO_0_REGS, 0); // Enable GPIO BANK 0 interrupt
Interrupt Type:
1) Reset interrupt (RESET) has the highest priority
2) Non-maskable interrupts/exceptions: all software interrupts and two external interrupts RS and NMI.
3) 12 maskable hardware interrupts (INT4-INT15) 12 event interrupt sources.
4) Can shield hardware exceptions (EXCAP).
Events: 0-127 independent events and combined events (Event Combiner)
0~127个独立中断事件定义在interrupt.h头文件中: TimerInterrupts、Syscfg Interrupts、PRU Interrupts、EHRPWM Interrupts、EDMA Interrupts、EMU Interrupts、IDMA Interrupts、MMCSD Interrupts、USB Interrupts、SATA Interrupts、EMAC Interrupts、HPI Interrupts、I2C Interrupts、SPI Interrupts、UART Interrupts、GPIO Interrupts、ECAP Interrupts、EMIF Interrupts、DDR Interrupts、MCASP Interrupts、RTC Interrupts、PSC Interrupts、LCD Interrupts、MCBSP Interrupts、UPP Interrupts、VPIF Interrupts、INTC Interrupts、EMC Interrupts、PMC Interrupts、UMC Interrupts、PDC Interrupts、SYS Interrupts、DMC Interrupts、
Event Combiners:
Interrupt vector table (Function: After the corresponding interrupt occurs, jump to the corresponding address and execute the corresponding instruction.)
1. ISFP (interrupt service fetch packet) interrupt service fetch packet
2. Up to 8 32-bit instructions/14 compact instructions (Compact Instance)
3. The interrupt vector table can be stored in any storage space of the DSP memory as long as the entry address is aligned to 1K bytes.
|