代码搜索结果
找到约 8,517 项符合
Watchdog 的代码
watchdog._c
//有关看门狗的操作
#include "iom128v.h"
void EnableWatchDog() //启动看门狗
{
asm("WDR");
WDTCR=0x0f; //溢出间隔1.9S
}
void ShutWatchDog() //关闭看门狗
{
asm("WDR");
WDTCR=0x1f;
WDTCR=0x17;
}
void
watchdog.c
//有关看门狗的操作
#include "iom128v.h"
void EnableWatchDog(void) //启动看门狗
{
asm("WDR");
WDTCR=0x0f; //溢出间隔1.9S
}
void ShutWatchDog(void) //关闭看门狗
{
asm("WDR");
WDTCR=0x1f;
WDTCR=0x17;
}
watchdog.h
#ifndef __WATCHDOG_H__
#define __WATCHDOG_H__
#include
#define WD_180s WATCHDOG_180S
#define WD_90s WATCHDOG_90S
#define WD_45s WATCHDOG_45S
#define WD_22_2s WA
watchdog.plg
礦ision2 Build Log
Project:
C:\人邮\Keilc51资源程序\rx2_wdt\watchdog.uv2
Project File Date: 08/28/2001
Output:
watchdog.ini
define long resetCounter
resetCounter = 0;
func void Watchdog_Counter()
{
printf("\n The Watchdog timer has been reset %d times\n", resetCounter++);
}
watchdog.c
/*------------------------------------------------------------------------------
watchdog.c : Sample Program that demonstrates the watchdog timer for the
following microcontrollers
Atmel Wireless
watchdog.lnp
"watchdog.obj"
TO "watchdog"
RAMSIZE(256)