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

📄 led_test.c

📁 基于嵌入式系统的LED控制程序
💻 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
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\lpc22xx_register.h"
#include    "..\..\com\22eb06_lib_iolamp\22eb06_lib_iolamp.h"
#include    "..\..\com\lpc_lib_pll\lpc_lib_pll.h"





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

/*
void	xxx(xxx	xxx, xxx xxx);
*/
void led_test(void);
/*-------------------------------------------------------------------*/
/*						 variable define							 */
/*-------------------------------------------------------------------*/

/*
INT32U		XXXXXX;
*/
/*-------------------------------------------------------------------*/
/*						 function code								 */
/*-------------------------------------------------------------------*/


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

* glob	:	 xxxx
* inc	:

* author:
* date	:

* modify:
* comment:
**********************************************************************/
/*void	xxx(xxx	xxx)
	  {
	  }
*/
	
void Main(void)
	 {
//----IO_lamp test------------------------

    lpc_init_pll_manual();

      INT32U i;
	  Init_lamp();
	  led_test();	  
 

	 }

void led_test(void)
{
	 while(1)
	{
		IO_lamp(0, 1);
		 time_dly(0x180);
		 IO_lamp(1, 0);
		 time_dly(0x180);
	}
}



⌨️ 快捷键说明

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