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

📄 led_test.c

📁 使用embest IDE开发工具开发的基于LPC2294 的触摸屏开发
💻 C
字号:


/*
***********************************************************************

	   Embest Info&Tech	Co., Ltd.  All rights reserved.
					 www.embedinfo.com

***********************************************************************

---------------- file information -------------------------------------

file name: lpc22eb06_test.c
version	 : v0
author	 : peter pan / panqan@hotmail.com
	                   panqian@embedinfo.com
begin	 : 2006-02-10
finish	 : 2006-02-10
define	 : lpc22eb06 test file

notes	 :

---------------- modify	information	-----------------------------------
version	 :
modify	 :
begin	 :
finish	 :
define	 :
-----------------------------------------------------------------------
*/


// (--------------------- compiler condition --------------------------

/*
#ifdef	xxx
		#define	 xxx
#endif
*/

// --------------------- compiler condition	--------------------------)



/*-------------------------------------------------------------------*/
/*						 include files								 */
/*---------------------------------------------------------------- --*/

#include	"..\..\..\com\type_redefine.h"
#include	"..\..\..\com\register_lpc22xx.h"

#include    "..\..\..\com\lib_22eb06\io_lamp\lib_22eb06_iolamp.h"






/*-------------------------------------------------------------------*/
/*						 local function	declare						 */
/*-------------------------------------------------------------------*/

/*
void	xxx(xxx	xxx, xxx xxx);
*/

/*-------------------------------------------------------------------*/
/*						 variable define							 */
/*-------------------------------------------------------------------*/

/*
INT32U		XXXXXX;
*/






/*-------------------------------------------------------------------*/
/*						 extern	function declare					 */
/*-------------------------------------------------------------------*/

/*--- define in	XXX.c ---
extern	void	XXX();
*/


/*-------------------------------------------------------------------*/
/*						 extern	variable declare					 */
/*-------------------------------------------------------------------*/

/*--- USED in XXX()	---
XXX	SSS; //	used inXXX()
*/



/*-------------------------------------------------------------------*/
/*						 function code								 */
/*-------------------------------------------------------------------*/


/**********************************************************************
* name	:	 xxxxx
* func	:	 xxxxx
* para	:	 xxxx
* ret	:	 xxxx

* glob	:	 xxxx
* inc	:

* author:
* date	:

* modify:
* comment:
**********************************************************************/
/*void	xxx(xxx	xxx)
	  {
	  }
*/


/**********************************************************************
* name	:	 Main
* func	:	 main fun
* para	:	 none
* ret	:	 none

* glob	:	 xxxx
* inc	:

* author:
* date	:

* modify:
* comment:
**********************************************************************/
INT32U Main(void)
	 {
      INT32U i;
//----IO_lamp test------------------------
	  
	  Init_lamp();
	  
	  i=2;
	  for(;i>0;i--)
		 {
		  IO_lamp(iolamp_off, iolamp_on);
		  time_dly(0x60);
		  IO_lamp(iolamp_on, iolamp_off);
		  time_dly(0x60);
		 }
	  i=2;
	  for(;i>0;i--)
		 {
		  IO_lamp(iolamp_off, iolamp_on);
		  time_dly(0x60);
		  IO_lamp(iolamp_off, iolamp_off);
		  time_dly(0x60);
		 }
	  i=2;
	  for(;i>0;i--)
		 {
		  IO_lamp(iolamp_on, iolamp_off);
		  time_dly(0x60);
		  IO_lamp(iolamp_off, iolamp_off);
		  time_dly(0x60);
		 }


	  for(;;)
		 {
		  IO_lamp(iolamp_off, iolamp_on);
		  time_dly(0x80);
		  IO_lamp(iolamp_on, iolamp_off);
		  time_dly(0x80);
		 }


//----IO_lamp test------------------------
	  
	  return(0);


	 }

⌨️ 快捷键说明

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