📄 user_interrupt_management.c
字号:
//****************************************************************************
// @Module User
// @Filename User_interrupt_managment.c
// @Project LIN_Protocol
//----------------------------------------------------------------------------
// @Controller Infineon C161CI, Evaluation Kit
//
// @Compiler Keil uVision2 V2.03
//
// @Version 0.1
//
// @Description Includes interrupt functions, that needed in the Master-
// and in the Slave-Tasks. This file is part of the
// application software
//
//----------------------------------------------------------------------------
// @Date 05/16/2000
//
//****************************************************************************
// USER CODE BEGIN
//----------------------------------------------------------------------------
// @Globals
// <name> <type (In/Out/InOut)> <description>
//
//----------------------------------------------------------------------------
// @AppNote
// <general description of the appnote specific user code within this module>
//
//----------------------------------------------------------------------------
// <else descriptions>
//
//----------------------------------------------------------------------------
// @Copyright (C) 2000 INFINEON TECHNOLOGIES AG. All rights reserved.
//
// Systems Engineering Automotive AI SM SEA
// Juergen Ketterer
//****************************************************************************
// USER CODE END
//****************************************************************************
// @Project Includes
//****************************************************************************
// USER CODE BEGIN (main,<position>)
#include <REG164ci.H> // register definitions C161
//#include <reg161_more.H> // headerfile with added register definitions
#include <LIN_driver.H> // LIN-functions
#define CHECK_RXD
// USER CODE END
//sbit P1L_0 = P1L^0;
//sbit P1L_1 = P1L^1;
//****************************************************************************
// @Macros
//****************************************************************************
// USER CODE BEGIN (main,<position>)
//<User local macros definitions>
// USER CODE END
//****************************************************************************
// @Defines
//****************************************************************************
// USER CODE BEGIN (<module>,<position>)
// USER CODE END
//****************************************************************************
// @Typedefs
//****************************************************************************
// USER CODE BEGIN (<module>,<position>)
// USER CODE END
//****************************************************************************
// @Imported Global Variables
//****************************************************************************
// USER CODE BEGIN (<module>,<position>)
// USER CODE END
//****************************************************************************
// @External Prototypes
//****************************************************************************
// USER CODE BEGIN (<module>,<position>)
// USER CODE END
//****************************************************************************
// @Global Variables
//****************************************************************************
// USER CODE BEGIN
// USER CODE END
//****************************************************************************
// @Function void USER_viCapture15_Interrupt(void)interrupt 0x1F
//
//----------------------------------------------------------------------------
// @Description
// This function will be called after capture15 interrupt.
//----------------------------------------------------------------------------
// @Returnvalue void
//
//----------------------------------------------------------------------------
// @Parameters void
//
//----------------------------------------------------------------------------
// @Date 04/18/2000
//
//****************************************************************************
//----------------------------------------------------------------------------
// @Global Variables
//
//----------------------------------------------------------------------------
// @AppNote
//
//----------------------------------------------------------------------------
//
//****************************************************************************
void USER_viCapture16_Interrupt(void) interrupt 0x30
{
#ifdef CHECK_Capcom
// P1_0 = 0;
#endif
LIN_vCapCom_Interrupt();
#ifdef CHECK_Capcom
// P1_0 = 1;
#endif
}
//****************************************************************************
// USER CODE END: void USER_viCapture15_Interrupt(void) interrupt 0x10
//****************************************************************************
// @Function void USER_viCapComTimer0_Interrupt(void) interrupt 0x20
//
//----------------------------------------------------------------------------
// @Description
// this function will be called after timer0 overflow interrupt
//----------------------------------------------------------------------------
// @Returnvalue void
//
//----------------------------------------------------------------------------
// @Parameters void
//
//----------------------------------------------------------------------------
// @Date 04/05/2000
//
//****************************************************************************
//----------------------------------------------------------------------------
// @Global Variables
//
//----------------------------------------------------------------------------
// @AppNote
// This function is just used in the test-program
//----------------------------------------------------------------------------
//
//****************************************************************************
void USER_viCapComTimer7_Interrupt(void) interrupt 0x3D
{
;
}
//****************************************************************************
// USER CODE END: void USER_viCapComTimer0_Interrupt(void) interrupt 0x20
//****************************************************************************
// @Function void USER_viRxd1_Interrupt(void) interrupt 0x49
//
//----------------------------------------------------------------------------
// @Description
// Rxd-Interrupt-Routine, will be called after receiving a LIN message
// on the specified UART.
// The LIN_vRxd_Interrupt()-Function which is provided by the LIN Driver
// must be implemented here.
// For more details please have a look on that Function-Description.
//----------------------------------------------------------------------------
// @Returnvalue void
//
//----------------------------------------------------------------------------
// @Parameters Address from User Call Back Function
//
//
//----------------------------------------------------------------------------
// @Date 05/16/2000
//
//****************************************************************************
//----------------------------------------------------------------------------
// @Global Variables
//
//----------------------------------------------------------------------------
// @AppNote
//----------------------------------------------------------------------------
//
//****************************************************************************
void USER_viRxd0_Interrupt(void) interrupt 0x2B
{
#ifdef CHECK_RXD
// P1L_0 = 1;
#endif
LIN_vRxd_Interrupt();
#ifdef CHECK_RXD
// P1L_0 = 0;
#endif
}
//****************************************************************************
// USER CODE END: void USER_viRxd1_Interrupt(void) interrupt 0x49
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -