1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/projects/blinker/main.c

23 lines
407 B
C

#include <stdio.h>
#include <math.h>
#include <board.h>
#include "hwtimer.h"
void wait(void)
{ /* simple delay function */
volatile int i; /* declare i as volatile int */
for(i = 0; i < 32000; i++); /* repeat 32000 times (nop) */
}
int main(void)
{
for(;;)
{ /* infinite loop */
RED_ON;
wait(); /* call delay function */
RED_OFF;
wait();
}
}