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

📄 vector.c

📁 摩托罗拉公司发布的QL4的Lin总线kit,freescale网站上花钱买的
💻 C
字号:
#define VECTOR_C
/******************************************************************************
*
*       Copyright (C) 2003 Motorola, Inc.
*       All Rights Reserved
*
* Filename:     $RCSfile: vector.c,v $
* Author:       $Author: ra5782 $
* Locker:       $Locker:  $
* State:        $State: Exp $
* Revision:     $Revision: 0.1 $
*
* Functions:    Vectors table for LIN908QL4 Drivers
*
* History:      Initial version
*
* Description:  Vector table and node's startup for HC08.
*               The users can add their own vectors into the table,
*               but they should not replace LIN Drivers vectors.
*
******************************************************************************/

extern void SLIC_ISR();        /* SLIC Module ISR    */
extern void _Startup();        /* CW08 compiler startup routine declaration */

/******************************************************************************
    INTERRUPT VECTORS TABLE
    User is able to add another ISR into this table instead NULL pointer.
******************************************************************************/
 
#if !defined(NULL)
#define NULL    (0)
#endif /* !defined(NULL) */

#undef  LIN_VECTF

#if defined(CW08)
#define LIN_VECTF ( void ( *const ) ( ) )
#pragma CONST_SEG VECTORS_DATA              /* vectors segment declaration */
void (* const _vectab[])( ) = 
#endif  /* defined(CW08) */

#if defined(COSMIC08)
#define LIN_VECTF (void *const)
void *const _vectab[] = 
#endif  /* defined(COSMIC08)  */

{
    LIN_VECTF NULL,                          /* 0xFFDE   ADC               */
    LIN_VECTF NULL,                          /* 0xFFE0   Keyboard          */
    LIN_VECTF NULL,                          /* 0xFFE2   Reserved          */
    LIN_VECTF NULL,                          /* 0xFFE4   Reserved          */
    LIN_VECTF NULL,                          /* 0xFFE6   Reserved          */
    LIN_VECTF NULL,                          /* 0xFFE8   Reserved          */
    LIN_VECTF SLIC_ISR,                      /* 0xFFEA   SLIC	           */
    LIN_VECTF NULL,                          /* 0xFFEC   Reserved          */
    LIN_VECTF NULL,                          /* 0xFFEE   Reserved          */
    LIN_VECTF NULL,                          /* 0xFFF0   Reserved          */
    LIN_VECTF NULL,               			 /* 0xFFF2   TIMER overflow    */
    LIN_VECTF NULL,     	                 /* 0xFFF4   TIMER channel 1   */
    LIN_VECTF NULL,                          /* 0xFFF6   TIMER channel 0   */
    LIN_VECTF NULL,                          /* 0xFFF8   Reserved          */
    LIN_VECTF NULL,                          /* 0xFFFA   IRQ               */
    LIN_VECTF NULL,                          /* 0xFFFC   SWI               */
    LIN_VECTF _Startup                       /* 0xFFFE   RESET             */
};

#if defined(CW08)
#pragma CONST_SEG DEFAULT
#endif  /* defined(CW08) */

⌨️ 快捷键说明

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