vectors.h

来自「Texas-Instrument C2000 Series DSP exampl」· C头文件 代码 · 共 25 行

H
25
字号
/*------------------------------------------------------------------*/
/* Filename: vectors.h   Defines interrupt vectors and trap vectors */
/*                       for C programs                             */
/*                                                                  */
/* Usage:    #include vectors.h                                     */
/*                                                                  */
/* Modifications: If you add interrupt service routines, modify     */
/*                this file to insert the vectors at the proper     */
/*                location in the vector table.                     */
/*------------------------------------------------------------------*/

  asm("       .global _c_int0                   ");
  asm("       .global _c_int2                   ");

  asm("       .sect \"vectors\"                 ");
  asm("RESET:  b     _c_int0 ; external RESET   ");
  asm("INT1:   b     $                          ");
  asm("INT2:   b     $                          ");
  asm("INT3:   b     $                          ");                          
  asm("INT4:   b     $  	                ");                          
  asm("INT5:   b     $                          ");                          
  asm("INT6:   b     $                          ");                          
  asm("       .text                             ");

⌨️ 快捷键说明

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