1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/projects/blinker/main.c
Oliver Hahm 01f96ad198 [projecs blinker] [projects hello-world]
* reverted changes from julsch' accidentally commit

[tools toolchains build_gnuarm]

* fixed toolchain build script for current GCC version
2012-11-05 14:05:10 -05:00

22 lines
378 B
C

#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 */
LED_RED_ON;
wait(); /* call delay function */
LED_RED_OFF;
wait();
}
}