diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-02-17 09:34:05 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-02-17 09:34:05 +0100 |
commit | 51e26d2d09aebaa311a4775e580f7c966dcc66f9 (patch) | |
tree | a7cb15f5ff1979b88a61c43e93d71d88f41248f7 /src/app/ledblink | |
parent | ded87aa27aa892d2911b624862db1808b961ea66 (diff) |
ledblink: remove timer_cycles / timer_s dependency
Diffstat (limited to 'src/app/ledblink')
-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(); |