代码搜索结果
找到约 6,975 项符合
Watchdog 的代码
readme~
//
//
//启动驱动并测试。
// 。2008.7.5
//
//本文分为2节
//
// 1,启动驱动
// 2,测试
//
1,启动驱动
1)copy wdt3210.c 到 ../fcr_linux26/drivers/char/watchdog/,并修改Makefile和Kconfig
2) copy OpenWatc
readme
//
//
//启动驱动并测试。
// 。2008.7.5
//
//本文分为2节
//
// 1,启动驱动
// 2,测试
//
1,启动驱动
1)copy wdt3210.c 到 ../fcr_linux26/drivers/char/watchdog/,并修改Makefile和Kconfig
2) copy OpenWatc
openwatchdog.c
/*
*此程序是用于测试watchdog驱动程序wdt3210.c
*
*实现的功能如下switch语句中:
* 1,喂狗
* 2,改timer时间,并喂狗
* 3,获得timer时间,并喂狗
*
鎺ュ彛鍑芥暟璇存槑
watchdog驱动接口函数有2个:
1,open 函数
2,ioctl函数
open 函数原型:int open(const char *pathname,int flags)
参数:
pathname: 设备文件路径
flags: 打开文件的
example_281xwatchdog.c
//###########################################################################
//
// FILE: Example_281xWatchdog.c
//
// TITLE: DSP281x Watchdog interrupt test program.
//
// ASSUMPTIONS:
//
at91_wdt.c
/*
* Watchdog driver for Atmel AT91RM9200 (Thunder)
*
* (c) SAN People (Pty) Ltd
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General
watchdog.cpp
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by
watchdog.h
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by
first.gel
StartUp()
{
GEL_Reset();
GEL_MemoryFill(0x7029,1,1,0x68);
GEL_WatchAdd("*(int *)0x7029@data,x", "WDCR");
}
menuitem "Watchdog";
hotmenu Disable_Watchdog()
{
watchdog.mak
CC = iccavr
CFLAGS = -IC:\icc\include\ -e -DATMega8515 -l -g -Mavr_enhanced_small -Wa-W
ASFLAGS = $(CFLAGS) -Wa-g
LFLAGS = -LC:\icc\lib\ -g -Wl-W -bfunc_lit:0x22.0x2000 -dram_end:0x25f -bdata: