From 51e26d2d09aebaa311a4775e580f7c966dcc66f9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 17 Feb 2020 09:34:05 +0100 Subject: ledblink: remove timer_cycles / timer_s dependency --- src/app/ledblink/Makefile.inc | 1 - src/app/ledblink/main.cc | 10 ++-------- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'src/app/ledblink') 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(); -- cgit v1.2.3