From 0aee2ef9cc335fcc909a3dca886660795b862ead Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Mon, 2 Apr 2012 17:11:13 +0200 Subject: made compatible to DM3730 --- uart-loader/common/cmd_load.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'uart-loader/common/cmd_load.c') diff --git a/uart-loader/common/cmd_load.c b/uart-loader/common/cmd_load.c index 872833d..6bd07e4 100644 --- a/uart-loader/common/cmd_load.c +++ b/uart-loader/common/cmd_load.c @@ -168,6 +168,18 @@ void testfn(void) int do_comand_line(void) { // add testing code here printf ("Welcome to uart-loader\n"); + printf (" c - run test code in RAM\n"); + printf (" x [addr] - execute\n"); + printf (" l - loop hello world\n"); + printf (" ram - fill ram with data pattern\n"); + printf (" a addr - set address\n"); + printf (" r [size] - read bytes\n"); + printf (" rl [size] - read long words\n"); + printf (" f [value [size]] - write bytes\n"); + printf (" bl - blink backlight\n"); + printf (" g - show GPIOs\n"); + printf (" m - show PinMux\n"); + return 0; while(1) { char *c; int argc=0; @@ -190,7 +202,7 @@ int do_comand_line(void) break; // command default: if(pos < sizeof(line)/sizeof(line[0])) { - putc(line[pos]); + putc(line[pos]); // echo pos++; } continue; @@ -234,7 +246,7 @@ int do_comand_line(void) else if(strcmp(argv[0], "l") == 0) { // l - loop int d=1; while(1) - printf ("Welcome to uart-monitor (%d)\n", d++), udelay(500*1000); + printf ("Welcome to uart-loader (%d)\n", d++), udelay(500*1000); } else if(strcmp(argv[0], "ram") == 0) { int val=0x55; -- cgit v1.1