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

📄 vector.lst

📁 汽车电子上现在最火热的总线之一LIN总线的单片机实现。
💻 LST
字号:
ANSI-C/cC++ Compiler for HC08 V-5.0.17, Apr 22 2003

    1:  #define VECTOR_C
    2:  /******************************************************************************
    3:  *
    4:  *       Copyright (C) 2003 Motorola, Inc.
    5:  *       All Rights Reserved
    6:  *
    7:  * Filename:     $RCSfile: vector.c,v $
    8:  * Author:       $Author: ra5782 $
    9:  * Locker:       $Locker:  $
   10:  * State:        $State: Exp $
   11:  * Revision:     $Revision: 0.1 $
   12:  *
   13:  * Functions:    Vectors table for LIN908QL4 Drivers
   14:  *
   15:  * History:      Initial version
   16:  *
   17:  * Description:  Vector table and node's startup for HC08.
   18:  *               The users can add their own vectors into the table,
   19:  *               but they should not replace LIN Drivers vectors.
   20:  *
   21:  ******************************************************************************/
   22:  
   23:  extern void SLIC_ISR();        /* SLIC Module ISR    */
   24:  extern void _Startup();        /* CW08 compiler startup routine declaration */
   25:  
   26:  /******************************************************************************
   27:      INTERRUPT VECTORS TABLE
   28:      User is able to add another ISR into this table instead NULL pointer.
   29:  ******************************************************************************/
   30:   
   31:  #if !defined(NULL)
   32:  #define NULL    (0)
   33:  #endif /* !defined(NULL) */
   34:  
   35:  #undef  LIN_VECTF
   36:  
   37:  #if defined(CW08)
   38:  #define LIN_VECTF ( void ( *const ) ( ) )
   39:  #pragma CONST_SEG VECTORS_DATA              /* vectors segment declaration */
   40:  void (* const _vectab[])( ) = 
   41:  #endif  /* defined(CW08) */
   42:  
   43:  #if defined(COSMIC08)
   44:  #define LIN_VECTF (void *const)
   45:  void *const _vectab[] = 
   46:  #endif  /* defined(COSMIC08)  */
   47:  
   48:  {
   49:      LIN_VECTF NULL,                          /* 0xFFDE   ADC               */
   50:      LIN_VECTF NULL,                          /* 0xFFE0   Keyboard          */
   51:      LIN_VECTF NULL,                          /* 0xFFE2   Reserved          */
   52:      LIN_VECTF NULL,                          /* 0xFFE4   Reserved          */
   53:      LIN_VECTF NULL,                          /* 0xFFE6   Reserved          */
   54:      LIN_VECTF NULL,                          /* 0xFFE8   Reserved          */
   55:      LIN_VECTF SLIC_ISR,                      /* 0xFFEA   SLIC	           */
   56:      LIN_VECTF NULL,                          /* 0xFFEC   Reserved          */
   57:      LIN_VECTF NULL,                          /* 0xFFEE   Reserved          */
   58:      LIN_VECTF NULL,                          /* 0xFFF0   Reserved          */
   59:      LIN_VECTF NULL,               			 /* 0xFFF2   TIMER overflow    */
   60:      LIN_VECTF NULL,     	                 /* 0xFFF4   TIMER channel 1   */
   61:      LIN_VECTF NULL,                          /* 0xFFF6   TIMER channel 0   */
   62:      LIN_VECTF NULL,                          /* 0xFFF8   Reserved          */
   63:      LIN_VECTF NULL,                          /* 0xFFFA   IRQ               */
   64:      LIN_VECTF NULL,                          /* 0xFFFC   SWI               */
   65:      LIN_VECTF _Startup                       /* 0xFFFE   RESET             */
   66:  };
   67:  
   68:  #if defined(CW08)
   69:  #pragma CONST_SEG DEFAULT
   70:  #endif  /* defined(CW08) */
   71:  

⌨️ 快捷键说明

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