📄 int72324.c
字号:
/**************** (c) 2003 STMicroelectronics ********************************
PROJECT : INT72324
COMPILERS : COSMIC AND METROWERKS
MODULE : int72324.c
CREATION DATE : 12/06/03
AUTHOR : Micro Controller Division Application Team
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
DESCRIPTION : Main Interrupt Service Routines
This file can be used to describe all the interrupt subroutines
that may occur within your application.As the routines' names
are declared in the .prm file, when an interrupthappens, the
software will branch automaticly to the corresponding routine
according to the interrupt vector loaded in the PC register.For
now, the routines are all empty as nothing special may occur in
the example's main program.It's better to create as many
interrupt functions as necessary, ie for each interrupt vector
even if the routine is empty (iret). By doing this, you will
prevent your software from branching to an undesired interrupt
routine.
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
MODIFICATIONS :
12/06/03 - V 2.1 - 1) Compatibility with Cosmic And Metrowerks
2) Update for st72324
******************************************************************************/
#include "map72324.h"
#include "i2cm_drv.h" /* I2C driver.*/
#include "variable.h"
#include "lib_bits.h"
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : dummy_rt
INPUT/OUTPUT : None
DESCRIPTION : Empty Interrupt Service Routine
COMMENTS : all the non-connected interrupt vectors are connected to this
empty function
-----------------------------------------------------------------------------*/
void dummy_rt(void)
{
}
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : sw_rt
INPUT/OUTPUT : None
DESCRIPTION : Software Interrupt Service Routine
COMMENTS :
-----------------------------------------------------------------------------*/
void sw_rt(void)
{
}
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : eit0_rt
INPUT/OUTPUT : None
DESCRIPTION :
COMMENTS :
-----------------------------------------------------------------------------*/
void mcccsr_rt(void)
{
}
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : eit0_rt
INPUT/OUTPUT : None
DESCRIPTION :
COMMENTS :
-----------------------------------------------------------------------------*/
void eit0_rt(void)
{
}
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : eit1_rt
INPUT/OUTPUT : None
DESCRIPTION :
COMMENTS :
-----------------------------------------------------------------------------*/
void eit1_rt(void)
{
}
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : eit2_rt
INPUT/OUTPUT : None
DESCRIPTION :
COMMENTS :
-----------------------------------------------------------------------------*/
void eit2_rt(void)
{
}
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : eit3_rt
INPUT/OUTPUT : None
DESCRIPTION :
COMMENTS :
-----------------------------------------------------------------------------*/
void eit3_rt(void)
{
}
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : spi_rt
INPUT/OUTPUT : None
DESCRIPTION :
COMMENTS :
-----------------------------------------------------------------------------*/
void spi_rt(void)
{
}
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : tima_rt
INPUT/OUTPUT : None
DESCRIPTION : timer Interrupt Service Routine
COMMENTS :
-----------------------------------------------------------------------------*/
void tima_rt(void)
{
}
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : timb_rt
INPUT/OUTPUT : None
DESCRIPTION : timer Interrupt Service Routine
COMMENTS :
-----------------------------------------------------------------------------*/
void timb_rt(void)
{
}
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : i2c_rt
INPUT/OUTPUT : None
DESCRIPTION : I2C Interrupt Service Routine
COMMENTS :
-----------------------------------------------------------------------------*/
void i2c_rt(void)
{
}
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : sci_rt
INPUT/OUTPUT : None
DESCRIPTION : I2C Interrupt Service Routine
COMMENTS :
-----------------------------------------------------------------------------*/
void sci_rt(void)
{
}
#ifdef __HIWARE__ /* Test for HIWARE Compiler */
#pragma TRAP_PROC SAVE_REGS /* Additional registers will be saved */
#else
#ifdef __CSMC__ /* Test for Cosmic Compiler */
@interrupt
#else
#error "Unsupported Compiler!" /* Compiler Defines not found! */
#endif
#endif
/*-----------------------------------------------------------------------------
ROUTINE NAME : eit0_rt
INPUT/OUTPUT : None
DESCRIPTION :
COMMENTS :
-----------------------------------------------------------------------------*/
void avd_rt(void)
{
}
/************* (c) 2003 STMicroelectronics ****************** END OF FILE ***/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -