📄 closesmpscmp3.c
字号:
#if defined(__dsPIC30F__)
#include <p30fxxxx.h>
#elif defined(__dsPIC33F__)
#include <p33Fxxxx.h>
#endif
#include "smpscmp.h"
#ifdef _AC3IF
/*************************************************************************
* Function Name : CloseSmpsCMP3
* Description : This function disables the Comparator 3 module and clears the CMP
* Interrupt Flags. This function also clears the CMPCON3 register.
* Parameters : void
* Return Value : None
**************************************************************************/
void CloseSmpsCMP3(void)
{
/* Clear the CMP Interrupt status Flags of Comparator 3 */
IFS1bits.AC3IF = 0;
/* Clear the CMP Interrupt control registers of Comparator 3 */
IEC1bits.AC3IE = 0;
/* Clear the CMP control registers */
CMPCON3 = 0;
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -