You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
463 B
29 lines
463 B
#include "system.h"
|
|
#include "led.h"
|
|
|
|
#include "timer.h"
|
|
|
|
int main (void)
|
|
{
|
|
system_init ();
|
|
led_init ();
|
|
|
|
/* Initialise timer. */
|
|
timer_init ();
|
|
|
|
while (1)
|
|
{
|
|
/* Turn LED on. */
|
|
led_set (LED1, 1);
|
|
|
|
/* Wait 500ms. */
|
|
timer_delay_ms (500);
|
|
|
|
/* Turn LED off. */
|
|
led_set (LED1, 0);
|
|
|
|
/* Wait 500ms. */
|
|
timer_delay_ms (500);
|
|
}
|
|
}
|