diff target-utils/helloapp/main.c @ 14:f0501c4a8790

helloapp (proto-loadagent) compiles with r8/r16/r32 implemented
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 03 May 2013 06:52:36 +0000
parents 40f607bb0a2c
children be293e656a6f
line wrap: on
line diff
--- a/target-utils/helloapp/main.c	Fri May 03 06:42:03 2013 +0000
+++ b/target-utils/helloapp/main.c	Fri May 03 06:52:36 2013 +0000
@@ -5,8 +5,6 @@
 #include "types.h"
 #include "romvars.h"
 
-#include <stdio.h>
-
 extern struct boot_rom_vars rom_vars;
 
 extern char *uart_name;
@@ -19,7 +17,9 @@
 		uart_name, rom_vars.baud_rate_code);
 	printf("TCXO clock input autodetected to be %d MHz\n",
 		rom_vars.clktcxo_13mhz ? 13 : 26);
-	/* interactive command mode to be implemented */
-	while (1)
-		;
+	for (;;) {
+		putchar('=');
+		if (command_entry())
+			command_dispatch();
+	}
 }