📄 f24xwdog.c
字号:
/* ==================================================================================
File name: F24xWDOG.c
This file contains the source for the Watchdog drivers.
For the function prototypes include the file watchdog.h in your build.
Applicability of these functions is indicated in the Table 1
/*----------------------------------------------------------------------------*/
#include <regs24x.h>
#include <F24X_WD.H>
void F24x_WD_ResetCounter(void)
{
WDKEY=0x5555; /* Reset WDog */
WDKEY=0xaaaa;
}
void F24x_WD_Disable(void)
{
WDCR=0x006f; /* Write Control Register to Disable Watchdog */
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -