ARM7开发全部源代码经典.rar
源代码在线查看: led.c
//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 }