testsysteminit.bak

来自「这是一个基于nec78f8024的led驱动程序」· BAK 代码 · 共 81 行

BAK
81
字号
/*
*******************************************************************************
**  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 :	systeminit.c
**  Abstract :	This file implements macro initialization.
**
**  Device :	uPD78F8024
**
**  Compiler :	NEC/CC78K0
**
*******************************************************************************
*/
/*
*******************************************************************************
**  Include files
*******************************************************************************
*/
#include "testmacrodriver.h"
#include "testsystem.h"
#include "testint.h"
#include "testport.h"
#include "testlvi.h"
#include "testwatchdogtimer.h"
#include "testbianhua.h"

/*
**-----------------------------------------------------------------------------
**
**  function name:
**		SystemInit
**
**  Parameters:
**		void
**
**  Returns:
**		void
**
**-----------------------------------------------------------------------------
*/
void SystemInit( void )
{
	/* clock generator initialize */
	Clock_Init();
	/* port initialize */
	PORT_Init();
	/* interrupt control initialize */
	INT_Init();
	/* low-voltage detector initialize */
	Lvi_Init();
	/* watchdogtimer initialize */
	WDT_Init();
	
	testbianhua_init();
}

/*
**-----------------------------------------------------------------------------
**
**  function name:
**		hdwinit
**
**  Parameters:
**		void
**
**  Returns:
**		void
**
**-----------------------------------------------------------------------------
*/
void hdwinit( void )
{
	DI( );
	SystemInit( );
	EI( );
}

⌨️ 快捷键说明

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