⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testmain.bak

📁 这是一个基于nec78f8024的led驱动程序
💻 BAK
字号:
/*******************************************************************************
**  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -