ARM7开发全部源代码经典.rar

源代码在线查看: led.c

软件大小: 225 K
上传用户: kidchen2008
关键词: ARM7 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				 //LED_task
				 //LED.c data for pooa8
				 #include "includes.h"
				 #include "ML674000.H"
				 #define  bit8  (0x01 				 #define  bit5  (0x01 				
				void dealy(unsigned int x); 
				
				void LED_task(void *data)
				
				{
				 
				 data=data;
				 while(1)
				 {
				 //GPP0A = 0x0100;
				 GPP0A |= bit8;        //clr PI0A
				 dealy(10);
				 // GPP0B = 0x0100;
				 GPP0A &= ~bit8;     //enable PI0B8 for out high level
				 dealy(10);
				 GPP0B |= bit5;      //clr POB5
				 dealy(10);
				 GPP0B &= ~bit5;    //enable PI0B
				 } 
				}
				
				
				 void dealy(unsigned int x)
				
				{
				
				 unsigned int i,j,t;
				 for(i =0;i				  for(j=0;j				   for(t=0;t				}
				
							

相关资源