📄 vectors.c
字号:
/*******************************************************************************/
/*
Copyright (c) 2008 Freescale Semiconductor
Freescale Confidential Proprietary
\file Vectors.c
\brief Vector table for CAN sample application with S08DZ60
The users can add their own vectors into the table.
\author Freescale Semiconductor
\author B05114
\version 0.1
\date January/2008
*/
/*******************************************************************************/
#include <startup.h> /* startup routine declaration */
extern void _Startup( void ); /* reset vector */
extern void TPM1_ISR(void); /* Timer overflow ISR */
extern void CANRx_ISR(void); /* CAN reception ISR */
/******************************************************************************
*
* Function: DummyISR()
*
* Description: dummy interrupt handler
*
* Returns: no return value
*
* Notes:
*
******************************************************************************/
#pragma MESSAGE DISABLE C4000
static interrupt void DummyISR(void)
{
while(1);
}
/******************************************************************************/
/* INTERRUPT VECTORS TABLE */
#undef VECTF
#define VECTF ( void ( *const near )( ) ) /* Vector table function specifier */
#pragma CONST_SEG VECTORS_DATA
void near ( * const near _vectab[] )( ) =
{
VECTF DummyISR, /* 0xFFC0: ACMP2 */
VECTF DummyISR, /* 0xFFC2: ACMP1 */
VECTF DummyISR, /* 0xFFC4: MSCAN Transmit */
VECTF CANRx_ISR, /* 0xFFC6: MSCAN Receive */
VECTF DummyISR, /* 0xFFC8: MSCAN Error */
VECTF DummyISR, /* 0xFFCA: MSCAN Wake-up */
VECTF DummyISR, /* 0xFFCC: RTC */
VECTF DummyISR, /* 0xFFCE: IIC */
VECTF DummyISR, /* 0xFFD0: ADC Conversion */
VECTF DummyISR, /* 0xFFD2: Ports A, B, D */
VECTF DummyISR, /* 0xFFD4: SCI2 Transmit */
VECTF DummyISR, /* 0xFFD6: SCI2 Receive */
VECTF DummyISR, /* 0xFFD8: SCI2 Error */
VECTF DummyISR, /* 0xFFDA: SCI1 Transmit */
VECTF DummyISR, /* 0xFFDC: SCI1 Receive */
VECTF DummyISR, /* 0xFFDE: SCI1 Error */
VECTF DummyISR, /* 0xFFE0: SPI */
VECTF DummyISR, /* 0xFFE2: TPM2 Overflow */
VECTF DummyISR, /* 0xFFE4: TPM2 Channel 1 */
VECTF DummyISR, /* 0xFFE6: TPM2 Channel 0 */
VECTF TPM1_ISR, /* 0xFFE8: TPM1 Overflow */
VECTF DummyISR, /* 0xFFEA: TPM1 Channel 5 */
VECTF DummyISR, /* 0xFFEC: TPM1 Channel 4 */
VECTF DummyISR, /* 0xFFEE: TPM1 Channel 3 */
VECTF DummyISR, /* 0xFFF0: TPM1 Channel 2 */
VECTF DummyISR, /* 0xFFF2: TPM1 Channel 1 */
VECTF DummyISR, /* 0xFFF4: TPM1 Channel 0 */
VECTF DummyISR, /* 0xFFF6: MCG loss of lock */
VECTF DummyISR, /* 0xFFF8: Low Voltage Detect */
VECTF DummyISR, /* 0xFFFA: IRQ */
VECTF DummyISR, /* 0xFFFC: SWI */
// VECTF _Startup, /* 0xFFFE: Reset */
};
#pragma CONST_SEG DEFAULT
/*******************************************************************************/
/* */
/* All software, source code, included documentation, and any implied know-how */
/* are property of Freescale Semiconductor and therefore considered */
/* CONFIDENTIAL INFORMATION. */
/* */
/* This confidential information is disclosed FOR DEMONSTRATION PURPOSES ONLY. */
/* */
/* All Confidential Information remains the property of Freescale Semiconductor*/
/* and will not be copied or reproduced without the express written permission */
/* of the Discloser, except for copies that are absolutely necessary in order */
/* to fulfill the Purpose. */
/* */
/* Services performed by FREESCALE in this matter are performed AS IS and */
/* without any warranty. CUSTOMER retains the final decision relative to the */
/* total design and functionality of the end product. */
/* */
/* FREESCALE neither guarantees nor will be held liable by CUSTOMER for the */
/* success of this project. */
/* */
/* FREESCALE disclaims all warranties, express, implied or statutory including,*/
/* but not limited to, implied warranty of merchantability or fitness for a */
/* particular purpose on any hardware, software ore advise supplied to the */
/* project by FREESCALE, and or any product resulting from FREESCALE services. */
/* */
/* In no event shall FREESCALE be liable for incidental or consequential */
/* damages arising out of this agreement. CUSTOMER agrees to hold FREESCALE */
/* harmless against any and all claims demands or actions by anyone on account */
/* of any damage,or injury, whether commercial, contractual, or tortuous, */
/* rising directly or indirectly as a result of the advise or assistance */
/* supplied CUSTOMER in connectionwith product, services or goods supplied */
/* under this Agreement. */
/* */
/*******************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -