diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-12-11 10:28:25 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-12-11 10:28:25 +0100 |
commit | 2253c912c86b5196e17657ee067abfc7afa4d652 (patch) | |
tree | c10d2722e0c44355bded196209bfba6d5827d06c /src/os | |
parent | 540974f8f109aa8874f032eddf59819c76eb018e (diff) |
Add basic uptime getter, improve loop support
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/main.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os/main.cc b/src/os/main.cc index 4509301..740309b 100644 --- a/src/os/main.cc +++ b/src/os/main.cc @@ -1,6 +1,7 @@ #include "arch.h" #include "driver/gpio.h" #include "driver/stdout.h" +#include "driver/uptime.h" /* void check_command(unsigned char argc, char** argv) @@ -88,6 +89,7 @@ void check_command(unsigned char argc, char** argv) void loop(void) { gpio.led_toggle(1); + kout << dec << uptime.get() << endl; } int main(void) @@ -99,6 +101,10 @@ int main(void) gpio.led_on(0); kout << "Hello, World!" << endl; kout << "Test, World!" << endl; + kout << dec << uptime.get() << endl; + kout << dec << uptime.get() << endl; + kout << dec << uptime.get() << endl; + kout << dec << uptime.get() << endl; arch.idle_loop(); |