⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pmpclose.c

📁 Mplab C30编译器
💻 C
字号:
#if defined(__dsPIC33F__)
#include <p33Fxxxx.h>
#elif defined(__PIC24H__)
#include <p24hxxxx.h>
#endif

#include "pmp.h"

#ifdef _PPI_PMP_V1

/******************************************************************************
 * Function:        PMPClose
 *
 * PreCondition:    None
 * Input:           None
 *
 * Output:          None
 *
 * Side Effects:	PMCON.PMPEN, IEC2.PMPIE, IFS2.PMPIF are cleared.
 *
 * Overview:    	disables PMP module, disables interrupt
 * 					
 * Note:            
 *****************************************************************************/
 void PMPClose(void)
 {
	IEC2bits.PMPIE = 0;
	PMCONbits.PMPEN = 0;
	IFS2bits.PMPIF = 0;
 }

/* end of file */
#else
#warning "Does not build on this target"
#endif

⌨️ 快捷键说明

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