interrupt_vector.c

来自「st7单片机各个中断程序」· C语言 代码 · 共 46 行

C
46
字号
/*	BASIC INTERRUPT VECTORS TABLE FOR ST7 devices
//	Copyright (c) 2002-2005 STMicroelectronics
*/


extern void _stext();		/* startup routine */


@interrupt void NonHandled (void)
{
	return;
}

@interrupt void NonHandledInterrupt (void)
{
	/* in order to detect unexpected events during development,
	   it is recommended to set a breakpoint on the following instruction
	*/
	return;
}

extern @interrupt void INT_SCI(void);
extern @interrupt void INT_TimerA(void);
extern @interrupt void INT_TimerB(void);
extern @interrupt void INT_PORTB(void);

/* Interrupt vector table, to be linked at the address
   0xFFE0 (in ROM) */
void (* const _vectab[])() = {
	NonHandledInterrupt,  			/* 0xFFE0 */
	NonHandledInterrupt,			/* 0xFFE2 */
	NonHandledInterrupt,			/* 0xFFE4 */
	INT_SCI,						/* 0xFFE6 */
	INT_TimerB,						/* 0xFFE8 */
	INT_TimerA,						/* 0xFFEA */
	NonHandledInterrupt,			/* 0xFFEC */
	NonHandledInterrupt,			/* 0xFFEE */
	NonHandledInterrupt,			/* 0xFFF0 */
	INT_PORTB,						/* 0xFFF2 */
	NonHandledInterrupt,			/* 0xFFF4 */
	NonHandledInterrupt,			/* 0xFFF6 */
	NonHandledInterrupt,			/* 0xFFF8 */
	NonHandledInterrupt,			/* 0xFFFA */
	NonHandledInterrupt,			/* Trap vector */
	_stext,			/* Reset Vector */
};

⌨️ 快捷键说明

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