📄 closeadc10.c
字号:
#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include "adc.h"
#if defined (_ADC_1012_V1) || defined (_ADC_1012_V2_GB)
/***********************************************************************************************
Function Prototype : void CloseADC10(void)
Include : adc.h
Description : This function turns off the ADC module and disables the ADC interrupts.
Arguments : None
Return Value : None
Remarks : This function first disables the ADC interrupt and then turns off the ADC
module.The Interrupt Flag bit (ADIF) is also cleared.
***********************************************************************************************/
void CloseADC10(void)
{
/* disable ADC interrupt */
IEC0bits.AD1IE = 0;
/* turn off ADC */
AD1CON1bits.ADON = 0;
/* clear ADIF bit */
IFS0bits.AD1IF = 0;
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -