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

📄 vector.c

📁 基于MC908QY4的LIN从站通信例程
💻 C
字号:
#define VECTOR_C
/******************************************************************************
*
*       Copyright (C) 2003 Motorola, Inc.
*       All Rights Reserved
*
* Filename:     $RCSfile: vector.c,v $
* Author:       $Author: ttz778 $
* Locker:       $Locker:  $
* State:        $State: Exp $
* Revision:     $Revision: 1.2 $
*
* Functions:    Vectors table for LIN908QY4 Drivers
*
* History:      Use the RCS command log to display revision history
*               information.
*
* 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 ISR_Timer0();
extern void ISR_TimerOverflow();
extern void TimA1ISR();        /* Timer channel 1 ISR    */
extern void _Startup();        /* CW08 compiler startup routine declaration */
//extern void TimOver();
/******************************************************************************
    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 ) ( ) )		 //force conversion of pointer type
#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 NULL,                          /* 0xFFEA   Reserved          */
    LIN_VECTF NULL,                          /* 0xFFEC   Reserved          */
    LIN_VECTF NULL,                          /* 0xFFEE   Reserved          */
    LIN_VECTF NULL,                          /* 0xFFF0   Reserved          */
    LIN_VECTF NULL,               			   /* 0xFFF2   TIMER overflow    */
    LIN_VECTF TimA1ISR,                      /* 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 + -