📄 configcnpullups.c
字号:
#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include <ports.h>
/***************************************************************************
Function Prototype : void ConfigCNPullups(long int config)
Include : ports.h
Description : This function configures the pull-up resistors
for CN pins.
Arguments : config - This is the 32-bit value for configuring
pull-ups. The lower word is stored into CNPU1 register
and next upper word is stored into CNPU2 register.
The upper 10 bits of CNPU2 register are unimplemented.
Return Value : None
Remarks : None
****************************************************************************/
void ConfigCNPullups(long int config)
{
CNPU1 = (unsigned int)config;
CNPU2 = (unsigned int)(config >> 16);
}
/* end of function ConfigCNPullups */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -