summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-06 13:49:32 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-06 13:49:32 +0100
commite49ce1e6d726ba7d3e6f80a9608d80cab316df32 (patch)
tree3c60defa36fc6ba7c1bfa106e57eae6209f5122c /src/os
parent82b779944d2c733d1db7a63a87452d9a5654a554 (diff)
Add support for arduino-like loop function + blinky on esp8266
Diffstat (limited to 'src/os')
-rw-r--r--src/os/main.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/os/main.cc b/src/os/main.cc
index fff8aec..b080185 100644
--- a/src/os/main.cc
+++ b/src/os/main.cc
@@ -84,11 +84,16 @@ void check_command(unsigned char argc, char** argv)
}
*/
+void loop(void)
+{
+ gpio.led_toggle(1);
+}
+
int main(void)
{
arch.setup();
gpio.setup();
- gpio.led_on(1);
+ gpio.led_on(0);
arch.idle_loop();
//uart_setup();