closeint3.c

来自「Mplab C30编译器」· C语言 代码 · 共 34 行

C
34
字号
#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include <ports.h>


/****************************************************************************
Function Prototype : void CloseINT3(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 _INT3

void CloseINT3(void)
{
    /* Disables external interrupt INT3 */
    IEC3bits.INT3IE = 0;
    IFS3bits.INT3IF =0;
}
/* end of function CloseINT3 */

#else
#warning "Does not build on this target"
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?