📄 pievect.c
字号:
/**************************************************************************/
// 文件名称: PieVect.c
//
// 简 介: DSP28 Devices PIE Vector Table Initialization Functions.
//
// 版权所有(C)2006.12 中科大鲁能集成公司
/**************************************************************************/
#include "Device.h"
const struct PIE_VECT_TABLE PieVectTableInit = {
nothing, // Reserved space
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
// Non-Peripheral Interrupts
INT13_ISR, // XINT13
INT14_ISR, // CPU-Timer2
nothing, // Datalogging interrupt
nothing, // RTOS interrupt
nothing, // Emulation interrupt
nothing, // Non-maskable interrupt
nothing, // Illegal operation TRAP
nothing, // User Defined trap 0
nothing, // User Defined trap 1
nothing, // User Defined trap 2
nothing, // User Defined trap 3
nothing, // User Defined trap 4
nothing, // User Defined trap 5
nothing, // User Defined trap 6
nothing, // User Defined trap 7
nothing, // User Defined trap 8
nothing, // User Defined trap 9
nothing, // User Defined trap 10
nothing, // User Defined trap 11
// Group 1 PIE Vectors
nothing, // EV-A
nothing, // EV-B
nothing,
nothing,
XINT2_ISR, // external interrupt2
ADCINT_ISR, // ADC
nothing, // Timer 0
nothing, // WD
// Group 2 PIE Vectors
nothing, // EV-A
nothing, // EV-A
nothing, // EV-A
nothing, // EV-A
nothing, // EV-A
nothing, // EV-A
nothing, // EV-A
nothing,
// Group 3 PIE Vectors
nothing, // EV-A
nothing, // EV-A
nothing, // EV-A
nothing, // EV-A
nothing, // EV-A
nothing, // EV-A
nothing, // EV-A
nothing,
// Group 4 PIE Vectors
nothing, // EV-B
nothing, // EV-B
nothing, // EV-B
nothing, // EV-B
nothing, // EV-B
nothing, // EV-B
nothing, // EV-B
nothing,
// Group 5 PIE Vectors
nothing, // EV-B
nothing, // EV-B
nothing, // EV-B
nothing, // EV-B
CAPINT4_ISR, // EV-B
nothing, // EV-B
nothing, // EV-B
nothing,
// Group 6 PIE Vectors
nothing, // SPI-A receive
nothing, // SPI-A send
nothing,
nothing,
nothing, // McBSP-A
nothing, // McBSP-A
nothing,
nothing,
// Group 7 PIE Vectors
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
// Group 8 PIE Vectors
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
// Group 9 PIE Vectors
SCIRXINTA_ISR, // SCI-A
SCITXINTA_ISR, // SCI-A
SCIRXINTB_ISR, // SCI-B
SCITXINTB_ISR, // SCI-B
nothing, // eCAN
nothing, // eCAN
nothing,
nothing,
// Group 10 PIE Vectors
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
// Group 11 PIE Vectors
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
// Group 12 PIE Vectors
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
nothing,
};
//---------------------------------------------------------------------------
// InitPieVectTable:
//---------------------------------------------------------------------------
// This function initializes the PIE vector table to a known state.
// This function must be executed after boot time.
//
void InitPieVectTable(void)
{
Uint16 i;
Uint32 *Source = (void *) &PieVectTableInit;
Uint32 *Dest = (void *) &PieVectTable;
EALLOW;
for(i=0; i < 128; i++)
*Dest++ = *Source++; //memcpy();???
EDIS;
// Enable the PIE Vector Table
PieCtrlRegs.PIECRTL.bit.ENPIE = 1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -