代码搜索结果
找到约 8,517 项符合
Watchdog 的代码
watchdog.c
//*****************************************************************************
//
// watchdog.c - Driver for the Watchdog Timer Module.
//
// Copyright (c) 2005-2008 Luminary Micro, Inc. All rig
watchdog.h
//*****************************************************************************
//
// watchdog.h - Prototypes for the Watchdog Timer API
//
// Copyright (c) 2005-2008 Luminary Micro, Inc. All rig
watchdog.c
void dog ( ) /* 初始化看门狗*/
{
cs=1;
delay(1);
cs=0;
delay(1);
cs=1;
outbyt(da); /*向看门狗存储器写入一字节*/
int
watchdog.h
#include
//use the avr_libs
//such as below codes
/*
#define wdt_reset() __asm__ __volatile__ ("wdr")
#define _wdt_write(value) \
__asm__ __volatile__ ( \
"in __
watchdog.c
#include
#define portbit(address,bits) ((unsigned)(&address) * 8 + (bits))
volatile bit red @ portbit(PORTD,7);
volatile bit green @ portbit(PORTD,6);
void delay(unsigned int data)
{