⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stm8_interrupt_vector.c

📁 STM8示例程序
💻 C
字号:
/*	BASIC INTERRUPT VECTORS TABLE FOR STM8 devices
 *	Copyright (c) 2008 STMicroelectronics
 */

#include "stm8s_it.h"

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

void @near (* const _vectab[])() = {
  
	(void @near (*)())0x8200,
	_stext,		/* reset */
  
	(void @near (*)())0x8200,
	NonHandledInterrupt,			/* TRAP - Software interrupt */
	
	(void @near (*)())0x8200,
	NonHandledInterrupt,			/* irq0 - External Top Level interrupt (TLI) */

	
	(void @near (*)())0x8200,
	NonHandledInterrupt,			/* irq1 - Auto Wake Up from Halt interrupt */
	
	(void @near (*)())0x8200,
	CLK_IRQHandler,			/* irq2 - Clock Controller interrupt */
	
	(void @near (*)())0x8200,
	NonHandledInterrupt,			/* irq3 - External interrupt 0 (GPIOA) */
	
	(void @near (*)())0x8200,
	NonHandledInterrupt,			/* irq4 - External interrupt 1 (GPIOB) */
	
	(void @near (*)())0x8200,
	NonHandledInterrupt,		 /* irq5 - External interrupt 2 (GPIOC) */
	
	(void @near (*)())0x8200,
	NonHandledInterrupt,			 /* irq6 - External interrupt 3 (GPIOD) */
	
	(void @near (*)())0x8200,
	NonHandledInterrupt,			/* irq7 - External interrupt 4 (GPIOE) */
	
	(void @near (*)())0x8200,
	NonHandledInterrupt,			/* irq8 - CAN Rx interrupt */
	
	(void @near (*)())0x8200,
	NonHandledInterrupt,			/* irq9 - CAN Tx/ER/SC interrupt */
	
	(void @near (*)())0x8200,
	NonHandledInterrupt,			/* irq10 - SPI End of transfer interrupt */
	
	(void @near (*)())0x8200,
	NonHandledInterrupt,			 /* irq11 - TIM1 Update/Overflow/Trigger/Break interrupt */
	
	(void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq12 - TIM1 Capture/Compare interrupt */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq13 - TIM2 Update/Overflow/Break interrupt  */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq14 - TIM2 Capture/Compare interrupt */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq15 - TIM3 Update/Overflow/Break interrupt */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq16 - TIM3 Capture/Compare interrupt */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq17 - UART1 Tx complete interrupt */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq18 - UART1 Rx interrupt */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq19 - I2C interrupt */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq20 - UART2/UART3 Tx interrupt */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq21 - UART2/UART3 Rx interrupt */

		(void @near (*)())0x8200,
	 NonHandledInterrupt,			/* irq22 - ADC1/ADC2 end of conversion interrupt */
	
	(void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq23 - TIM4 Update/Overflow interrupt */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq24 - FLASH interrupt */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq25 - Reserved */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq26 - Reserved */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq27 - Reserved */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq28 - Reserved */

    (void @near (*)())0x8200,
    NonHandledInterrupt,   /* irq29 - Reserved */

  };

⌨️ 快捷键说明

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