raising and failing edge capture on TIM4
[cortex-from-scratch] / term.c
diff --git a/term.c b/term.c
index dba355b..7ce25ce 100644 (file)
--- a/term.c
+++ b/term.c
@@ -8,6 +8,7 @@
 #include <lib/stdio.h>
 #include <lib/string.h>
 #include <lib/regfunc.h>
+#include <lib/tinyprintf.h>
 
 #include <drivers/led.h>
 
@@ -44,9 +45,10 @@ int info(int argc, char ** argsv) {
 }
 
 int uptime(int arg, char ** argsv) {
-       cputs("CURRENT UPTIME: ");
-       cputs(regtohex(*RTC_CNTL));
-       cputchar('\n');
+       //cputs("CURRENT UPTIME: ");
+       //cputs(regtohex(*RTC_CNTL));
+       //cputchar('\n');
+       printf("CURRENT UPTIME: %p\n", *RTC_CNTL);
 }
 
 int led(int argc, char ** argsv) {
@@ -137,7 +139,7 @@ void terminal() {
 
 
        char *buf;
-        cputs("WELCOME TO ROBSYS!\n");
+        //cputs("WELCOME TO ROBSYS!\n");
  
          while (1) {
                  buf = readline("root# ");