From 3fb02f719f0bea99548a6bc7fe7c37e9d25ce800 Mon Sep 17 00:00:00 2001 From: henryk Date: Tue, 13 Nov 2007 15:26:14 +0000 Subject: Slight progress, still: enabling tc_fdt crashes the processor after some bits git-svn-id: https://svn.openpcd.org:2342/trunk@326 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/cmd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'openpicc/application/cmd.c') diff --git a/openpicc/application/cmd.c b/openpicc/application/cmd.c index e6b8947..0b5b8da 100644 --- a/openpicc/application/cmd.c +++ b/openpicc/application/cmd.c @@ -30,7 +30,7 @@ static const portBASE_TYPE USE_COLON_FOR_LONG_COMMANDS = 0; /* When not USE_COLON_FOR_LONG_COMMANDS then short commands will be recognized by including * their character in the string SHORT_COMMANDS * */ -static const char *SHORT_COMMANDS = "pc+-l?h"; +static const char *SHORT_COMMANDS = "!pc+-l?h"; /* Note that the long/short command distinction only applies to the USB serial console * */ @@ -263,6 +263,9 @@ void prvExecCommand(u_int32_t cmd, portCHAR *args) { vUSBSendByte( (char)led + '0' ); DumpStringToUSB("\n\r"); break; + case '!': + tc_cdiv_sync_reset(); + break; case 'H': case '?': DumpStringToUSB( @@ -281,6 +284,7 @@ void prvExecCommand(u_int32_t cmd, portCHAR *args) { " * l - cycle LEDs\n\r" " * p - print PIO pins\n\r" " * z 0/1- enable or disable tc_cdiv_sync\n\r" + " * ! - reset tc_cdiv_sync\n\r" " * ?,h - display this help screen\n\r" " *\n\r" " *****************************************************\n\r" -- cgit v1.2.3