vectab.s

来自「最新版IAR FOR ARM(EWARM)5.11中的代码例子」· S 代码 · 共 108 行

S
108
字号
//---------------------------------------------------------------------			
  MODULE	VECTAB_1
	EXPORT	VECTAB_1		
	
	IMPORT	isr_def
	IMPORT	isr_not_used
	
	IMPORT	isr_arm_CC0OR
	IMPORT	isr_arm_CC1OR
	IMPORT	isr_arm_CC2OR
	IMPORT	isr_arm_CC3OR
	IMPORT	isr_arm_CC4OR
	IMPORT	isr_arm_CC5OR
	IMPORT	isr_arm_CC0COMP
	IMPORT	isr_arm_CC1COMP
	IMPORT	isr_arm_CC2COMP
	IMPORT	isr_arm_CC3COMP
	IMPORT	isr_arm_CCC1

	IMPORT	isr_arm_PINT0
	IMPORT	isr_arm_PINT1
	IMPORT	isr_arm_PINT2
	IMPORT	isr_arm_PINT3
	IMPORT	isr_arm_PINT4
	IMPORT	isr_arm_PINT5

	IMPORT	isr_arm_ISN10
	IMPORT	isr_timer0
	IMPORT	isr_arm_Timer_1


  SECTION VecTab:CODE:NOROOT(9)   //vector table must start at an even page
  ARM

VECTAB_1				//start addresses ot the ISRs ('+1' for thumb ISRs)
	DCD	isr_def			//ISN0 Default vector, not connected
	DCD	isr_not_used		//ISN1 CC0OR
	DCD	isr_not_used		//ISN2 CC1OR
	DCD	isr_not_used		//ISN3 PINT0
	DCD	isr_not_used		//ISN4 PINT1
	DCD	isr_not_used		//ISN5 CAN0
	DCD	isr_not_used		//ISN6 SPI0
	DCD	isr_not_used		//ISN7 Timer 1
	DCD	isr_timer0		//ISN8 Timer 0
	DCD	isr_not_used		//ISN9 P06COMP
	DCD	isr_not_used		//ISN10 Reset/Alarm
	DCD	isr_not_used		//ISN11 WAIT COMP
	DCD	isr_not_used		//ISN12 UART0
	DCD	isr_not_used		//ISN13 PINT2
	DCD	isr_not_used		//ISN14 WAPI (###0.12)
	DCD	isr_not_used		//ISN15 CC2OR
	DCD	isr_not_used		//ISN16 CC3OR
	DCD	isr_not_used		//ISN17 Timer 2
	DCD	isr_not_used		//ISN18 RTC (###0.12)
	DCD	isr_not_used		//ISN19 I2C0
	DCD	isr_not_used		//ISN20 Timer 3
	DCD	isr_not_used		//ISN21 SPI1
	DCD	isr_not_used		//ISN22 COMMRX
	DCD	isr_not_used		//ISN23 COMMTX
	DCD	isr_not_used		//ISN24 PINT3 (###0.12)
	DCD	isr_not_used		//ISN25 DigitBus (###0.12)
	DCD	isr_not_used		//ISN26 I2C1
	DCD	isr_not_used		//ISN27 CAN1
	DCD	isr_not_used		//ISN28 CC4OR
	DCD	isr_not_used		//ISN29 CC5OR
	DCD	isr_not_used		//ISN30 Timer 4
	DCD	isr_not_used		//ISN31 UART1
	DCD	isr_not_used		//ISN32 PINT5
	DCD	isr_not_used		//ISN33 CAN2
	DCD	isr_not_used		//ISN34 CC0COMP
	DCD	isr_not_used		//ISN35 CC1COMP
	DCD	isr_not_used		//ISN36 CC2COMP
	DCD	isr_not_used		//ISN37 CC3COMP
	DCD	isr_not_used		//ISN38 PINT4 (###0.12)
	DCD	isr_not_used		//ISN39 GBus (###0.12)

	DCD	isr_not_used		//ISN40
	DCD	isr_not_used		//ISN41
	DCD	isr_not_used		//ISN42
	DCD	isr_not_used		//ISN43
	DCD	isr_not_used		//ISN44
	DCD	isr_not_used		//ISN45
	DCD	isr_not_used		//ISN46
	DCD	isr_not_used		//ISN47
	DCD	isr_not_used		//ISN48
	DCD	isr_not_used		//ISN49

	DCD	isr_not_used		//ISN50
	DCD	isr_not_used		//ISN51
	DCD	isr_not_used		//ISN52
	DCD	isr_not_used		//ISN53
	DCD	isr_not_used		//ISN54
	DCD	isr_not_used		//ISN55
	DCD	isr_not_used		//ISN56
	DCD	isr_not_used		//ISN57
	DCD	isr_not_used		//ISN58
	DCD	isr_not_used		//ISN59

	DCD	isr_not_used		//ISN60
	DCD	isr_not_used		//ISN61
	DCD	isr_not_used		//ISN62
	DCD	isr_not_used		//ISN63

	DCD	0						//reserved for VTB+0x100
		
		END

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?