diff options
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/ledblink/Makefile.inc | 1 | ||||
-rw-r--r-- | src/app/ledblink/main.cc | 10 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/app/ledblink/Makefile.inc b/src/app/ledblink/Makefile.inc index d7dcd37..2cb8a42 100644 --- a/src/app/ledblink/Makefile.inc +++ b/src/app/ledblink/Makefile.inc @@ -1,2 +1 @@ -timer_cycles ?= 1 loop ?= 1 diff --git a/src/app/ledblink/main.cc b/src/app/ledblink/main.cc index 8d2e9d4..d0f9c35 100644 --- a/src/app/ledblink/main.cc +++ b/src/app/ledblink/main.cc @@ -3,15 +3,13 @@ #include "driver/stdout.h" #include "driver/uptime.h" -#ifndef TIMER_CYCLES -#error makeflag timer_cycles=1 required -#endif - void loop(void) { gpio.led_toggle(1); #ifdef TIMER_S kout << dec << uptime.get_s() << endl; +#else + kout << "beep boop" << endl; #endif } @@ -24,10 +22,6 @@ int main(void) gpio.led_on(0); kout << "Hello, World!" << endl; kout << "Test, World!" << endl; - kout << dec << uptime.get_cycles() << endl; - kout << dec << uptime.get_cycles() << endl; - kout << dec << uptime.get_cycles() << endl; - kout << dec << uptime.get_cycles() << endl; arch.idle_loop(); |