testmain.bak

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

BAK
62
字号
/*******************************************************************************
**  Include files
*******************************************************************************
*/
#include "testmacrodriver.h"
#include "testsystem.h"
#include "testint.h"
#include "testport.h"
#include "testLED.h"
#include "testuser.h"
#include "testBOARD.h"
#include "testwatchdogtimer.h"

/*
*******************************************************************************
**  External Variable Difinition
*******************************************************************************
*/
unsigned char g_ucDuty[4];		/* for preservation of present duty of each LED */

/*
*******************************************************************************
**  External Function Uniting
*******************************************************************************
*/
void user_init( void );
void user_main( void );

/*
**-----------------------------------------------------------------------------
**
**  function name:
**		main
**
**  Parameters:
**		void
**
**  Returns:
**		void
**
**-----------------------------------------------------------------------------
*/
void main( void )
{
	/* internal memory size setting (high-speed RAM:512byte ROM:8Kbyte) */
	IMS = MEMORY_IMS_SET;
	/* change to enable the state of the board */
	changeBoardStatus(BOARD_STATUS_ENABLE);

	/* initialize dimmer program and LED lighting control */
	user_init();

	while(1){
		/* LED lighting is controlled according to dimmer program */
		user_main();

		/* watchdogtimer is reset */
		WDT_Reset();
	}
}

⌨️ 快捷键说明

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