📄 interrupt.c
字号:
/******************************************************************************
* PIC USB
* interrupt.c
******************************************************************************/
/** I N C L U D E S **********************************************************/
#include <p18cxxx.h>
#include "system/typedefs.h"
#include "system/interrupt/interrupt.h"
/** V A R I A B L E S ********************************************************/
/** I N T E R R U P T V E C T O R S *****************************************/
#pragma code high_vector=0x08
void interrupt_at_high_vector(void)
{
_asm goto high_isr _endasm
}
#pragma code
#pragma code low_vector=0x18
void interrupt_at_low_vector(void)
{
_asm goto low_isr _endasm
}
#pragma code
/** D E C L A R A T I O N S **************************************************/
/******************************************************************************
* Function: void high_isr(void)
* PreCondition: None
* Input:
* Output:
* Side Effects:
* Overview:
*****************************************************************************/
#pragma interrupt high_isr
void high_isr(void)
{
}
/******************************************************************************
* Function: void low_isr(void)
* PreCondition: None
* Input:
* Output:
* Side Effects:
* Overview:
*****************************************************************************/
#pragma interruptlow low_isr
void low_isr(void)
{
}
#pragma code
/** EOF interrupt.c **********************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -