📄 defaultisr_bios.c
字号:
/**********************************************************************
* File: DefaultIsr_BIOS.c
* Devices: TMS320F2812, TMS320F2811, TMS320F2810
* Author: David M. Alter, Texas Instruments Inc.
* History:
* 09/08/03 - original (based on DSP281x header files v1.00, D. Alter)
**********************************************************************/
#include "DSP281x_Device.h"
// EXAMPLE_BIOS or EXAMPLE_NONBIOS are defined in the CCS project build options
#ifdef EXAMPLE_BIOS
#include "example_BIOS.h"
#endif
#ifdef EXAMPLE_NONBIOS
#include "example_nonBIOS.h"
#endif
/*** Global variables used by CAPINT1_ISR() ***/
Uint16 CAP_rising = 0; // Captured rising edge timestamp
Uint16 CAP_falling = 0; // Captured falling edge timestamp
Uint16 CAP_width = 0; // PWM pulse width computed using captures
/*********************************************************************/
void INT13_ISR(void) // 0x000D1A INT13 - XINT13 (or CPU Timer1, reserved for TI)
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void RTOSINT_ISR(void) // 0x000D20 RTOSINT - CPU RTOS interrupt
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void NMI_ISR(void) // 0x000D24 NMI - XNMI interrupt
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void ILLEGAL_ISR(void) // 0x000D26 ILLEGAL - illegal operation trap
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void USER1_ISR(void) // 0x000D28 USER0 - software interrupt #0
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void USER2_ISR(void) // 0x000D2A USER1 - software interrupt #1
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void USER3_ISR(void) // 0x000D2C USER2 - software interrupt #3
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void USER4_ISR(void) // 0x000D2E USER3 - software interrupt #3
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void USER5_ISR(void) // 0x000D30 USER4 - software interrupt #4
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void USER6_ISR(void) // 0x000D32 USER5 - software interrupt #5
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void USER7_ISR(void) // 0x000D34 USER6 - software interrupt #6
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void USER8_ISR(void) // 0x000D36 USER7 - software interrupt #7
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void USER9_ISR(void) // 0x000D38 USER8 - software interrupt #8
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void USER10_ISR(void) // 0x000D3A USER9 - software interrupt #9
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void USER11_ISR(void) // 0x000D3C USER10 - software interrupt #10
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void USER12_ISR(void) // 0x000D3E USER11 - software interrupt #11
{
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void PDPINTA_ISR(void) // 0x000D40 PDPINTA (EV-A)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void PDPINTB_ISR(void) // 0x000D42 PDPINTB (EV-B)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void XINT1_ISR(void) // 0x000D46 XINT1
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void XINT2_ISR(void) // 0x000D48 XINT2
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void ADCINT_ISR(void) // 0x000D4A ADCINT (ADC)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1; // Must acknowledge the PIE group
SWI_post(&ADC_swi); // post a SWI
} // end ADCINT_ISR()
/*********************************************************************/
void TINT0_ISR(void) // 0x000D4C TINT0 (CPU TIMER 0)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void WAKEINT_ISR(void) // 0x000D4E WAKEINT (LPM/WD)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void CMP1INT_ISR(void) // 0x000D50 CMP1INT (EV-A)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP2; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void CMP2INT_ISR(void) // 0x000D52 CMP2INT (EV-A)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP2; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void CMP3INT_ISR(void) // 0x000D54 CMP3INT (EV-A)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP2; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void T1PINT_ISR(void) // 0x000D56 T1PINT (EV-A)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP2; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void T1CINT_ISR(void) // 0x000D58 T1CINT (EV-A)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP2; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void T1UFINT_ISR(void) // 0x000D5A T1UFINT (EV-A)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP2; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void T1OFINT_ISR(void) // 0x000D5C T1OFINT (EV-A)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP2; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void T2PINT_ISR(void) // 0x000D60 T2PINT (EV-A)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP3; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
void T2CINT_ISR(void) // 0x000D62 T2CINT (EV-A)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP3; // Must acknowledge the PIE group
// Next two lines for debug only - remove after inserting your ISR
asm (" ESTOP0"); // Emulator Halt instruction
while(1);
}
/*********************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -