微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > LM3S9B96 中断映射表的配置

LM3S9B96 中断映射表的配置

时间:11-11 来源:互联网 点击:
中断映射表类似于MFC中的消息映射机制,当你在main函数中定义一个中断处理函数,例如:GPIO_Port_J_ISR,PJ口中断处理函数。

如果想进入这个中断处理函数,你必须在startup_ewarm.c文件中添加两处相应代码

1. 声明GPIO_Port_J_ISR函数代码:该函数是在main中定义的,在startup_ewarm.c文件中使用前,要先声明一下

//*****************************************************************************

//

// External declarations for the interrupt handlers used by the application.

//

//*****************************************************************************

extern void GPIO_Port_J_ISR(void);

2.中断映射表

//*****************************************************************************

//

// The vector table. Note that the proper constructs must be placed on this to

// ensure that it ends up at physical address 0x0000.0000.

//

//*****************************************************************************

__root const uVectorEntry __vector_table[] @ ".intvec" =

{

{ .ulPtr = (unsigned long)pulStack + sizeof(pulStack) },

// The initial stack pointer

__iar_program_start, // The reset handler

NmiSR, // The NMI handler

FaultISR, // The hard fault handler

IntDefaultHandler, // The MPU fault handler

IntDefaultHandler, // The bus fault handler

IntDefaultHandler, // The usage fault handler

0, // Reserved

0, // Reserved

0, // Reserved

0, // Reserved

IntDefaultHandler, // SVCall handler

IntDefaultHandler, // Debug monitor handler

0, // Reserved

IntDefaultHandler, // The PendSV handler

IntDefaultHandler, // The SysTick handler

IntDefaultHandler, // GPIO Port A

IntDefaultHandler, // GPIO Port B

IntDefaultHandler, // GPIO Port C

IntDefaultHandler, // GPIO Port D

IntDefaultHandler, // GPIO Port E

IntDefaultHandler, // UART0 Rx and Tx

IntDefaultHandler, // UART1 Rx and Tx

IntDefaultHandler, // SSI0 Rx and Tx

IntDefaultHandler, // I2C0 Master and Slave

IntDefaultHandler, // PWM Fault

IntDefaultHandler, // PWM Generator 0

IntDefaultHandler, // PWM Generator 1

IntDefaultHandler, // PWM Generator 2

IntDefaultHandler, // Quadrature Encoder 0

IntDefaultHandler, // ADC Sequence 0

IntDefaultHandler, // ADC Sequence 1

IntDefaultHandler, // ADC Sequence 2

IntDefaultHandler, // ADC Sequence 3

IntDefaultHandler, // Watchdog timer

IntDefaultHandler, // Timer 0 subtimer A

IntDefaultHandler, // Timer 0 subtimer B

IntDefaultHandler, // Timer 1 subtimer A

IntDefaultHandler, // Timer 1 subtimer B

IntDefaultHandler, // Timer 2 subtimer A

IntDefaultHandler, // Timer 2 subtimer B

IntDefaultHandler, // Analog Comparator 0

IntDefaultHandler, // Analog Comparator 1

IntDefaultHandler, // Analog Comparator 2

IntDefaultHandler, // System Control (PLL, OSC, BO)

IntDefaultHandler, // FLASH Control

IntDefaultHandler, // GPIO Port F

IntDefaultHandler, // GPIO Port G

IntDefaultHandler, // GPIO Port H

IntDefaultHandler, // UART2 Rx and Tx

IntDefaultHandler, // SSI1 Rx and Tx

IntDefaultHandler, // Timer 3 subtimer A

IntDefaultHandler, // Timer 3 subtimer B

IntDefaultHandler,

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top