testlvi.c

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

C
50
字号
/*
*******************************************************************************
**  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 Low-Voltage Detector.
**
**  Device :	uPD78F8024
**
**  Compiler :	NEC/CC78K0
**
*******************************************************************************
*/
/*
*******************************************************************************
**  Include files
*******************************************************************************
*/
#include "testmacrodriver.h"
#include "testlvi.h"

/*
**-----------------------------------------------------------------------------
**
**  function name:
**	Init LVI Module
**
**  Parameters:
**	None
**
**  Returns:
**	None
**
**-----------------------------------------------------------------------------
*/
void Lvi_Init( void )
{
	/* disables low-voltage detection operation */
	LVION = BIT_CLR;
	/* detection level set 4.24V */
	LVIS  = LVIS_INIT_VALUE;
	/* not change operation (still disable) */
	LVIM  = LVIM_INIT_VALUE;
}


⌨️ 快捷键说明

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