📄 configintoc4.c
字号:
#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include <outcompare.h>
#ifdef _OCMP4
/************************************************************************
* Function Name: ConfigIntOC4 *
* Description: This Function Configures Interrupt and sets *
* Interrupt Priority *
* Parameters: unsigned int config *
* Return Value: None *
************************************************************************/
void ConfigIntOC4(unsigned int config)
{
IFS1bits.OC4IF = 0; /* Clear IF bit */
IPC6bits.OC4IP = (config &0x0007); /* Assign Interrupt Priority */
IEC1bits.OC4IE = (config &0x0008)>> 3;/* Enable/disable Interrupt */
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -