Skip to content
Snippets Groups Projects
Commit 51e26d2d authored by Daniel Friesel's avatar Daniel Friesel
Browse files

ledblink: remove timer_cycles / timer_s dependency

parent ded87aa2
No related branches found
No related tags found
No related merge requests found
timer_cycles ?= 1
loop ?= 1
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment