closeint0.c
来自「Mplab C30编译器」· C语言 代码 · 共 34 行
C
34 行
#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include<ports.h>
/****************************************************************************
Function Prototype : void CloseINT0(void)
Include : ports.h
Description : This function disables the external interrupt on INT pin.
Arguments : None
Return Value : None
Remarks : This function disables the interrupt on INT pin and
clears the corresponding Interrupt flag.
*******************************************************************************/
#ifdef _INT0
void CloseINT0(void)
{
/* Disables external interrupt INT0 */
IEC0bits.INT0IE = 0;
IFS0bits.INT0IF = 0;
}
/* end of function CloseINT0 */
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?