📄 configintsmpsadcpair3.c
字号:
#if defined(__dsPIC30F__)
#include <p30fxxxx.h>
#elif defined(__dsPIC33F__)
#include <p33Fxxxx.h>
#endif
#include "smpsadc.h"
#ifdef _ADCP3IF
/*************************************************************************
* Function Name : ConfigIntSmpsADCPair3
* Description : This function clears the Interrupt Flag bits, sets the interrupt
* priorities and Enables/disables the interrupts for ADC channels AN7 and AN6
* Parameters : unsigned int adc_intp, unsigned int adc_intp_priority
* Return Value : None
**************************************************************************/
void ConfigIntSmpsADCPair3(unsigned int adc_intp, unsigned int adc_intp_priority)
{
/* Clear the ADC Interrupt status Flags of ADC channels AN7 and AN6 */
IFS2bits.ADCP3IF = 0;
/* Enable/Disable the ADC Interrupt of ADC channels AN7 and AN6 */
IEC2bits.ADCP3IE = adc_intp;
/* Set the priority of ADC interrupt for ADC channels AN7 and AN6 */
IPC10bits.ADCP3IP = adc_intp_priority;
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -