testwatchdogtimer.c

来自「这是一个基于nec78f8024的led驱动程序」· C语言 代码 · 共 60 行

C
60
字号
/*
*******************************************************************************
**  COPYRIGHT (C) NEC Electronics Corporation 2008
**  NEC ELECTRONICS CONFIDENTIAL AND PROPRIETARY
**  All rights reserved by NEC Electronics Corporation.
**  Use of copyright notice does not evidence publication.
**
**  Filename :	lvi.c
**  Abstract :	This file implements the functions of Watchdogtimer.
**
**  Device :	uPD78F8024
**
**  Compiler :	NEC/CC78K0
**
*******************************************************************************
*/

#include "testmacrodriver.h"
#include "testwatchdogtimer.h"

/*
**-----------------------------------------------------------------------------
**
**  function name:
**	This function initializes watchdogtimer module.
**
**  Parameters:
**	None
**
**  Returns:
**	None
**
**-----------------------------------------------------------------------------
*/
void WDT_Init( void )
{
    /*                                            */
	/* WDT is set by the option byte in uPD78F8024. */
    /*                                            */
}

/*
**-----------------------------------------------------------------------------
**
**  function name:
**
**  Parameters:
**	None
**
**  Returns:
**	None
**
**-----------------------------------------------------------------------------
*/
void WDT_Reset( void )
{
	WDTE = 0x0AC;		/* Watchdog timer reset start */
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?