main.c
#include "led.h"
static void delay()
{
unsigned int i = 0;
for(i = 0; i < 0xffffff; i++);
}
int main()
{
led_init();
while(1)
{
led1_on();
delay();
led1_off();
delay();
led2_on();
delay();
led2_off();
delay();
}
return 0;
}
led.c
#define GPIO_BASE