mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
01f96ad198
* reverted changes from julsch' accidentally commit [tools toolchains build_gnuarm] * fixed toolchain build script for current GCC version
22 lines
378 B
C
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();
|
|
}
|
|
}
|
|
|