diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-11-13 15:26:14 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-11-13 15:26:14 +0000 |
commit | 3fb02f719f0bea99548a6bc7fe7c37e9d25ce800 (patch) | |
tree | 3742ace743afdd9d30fe5dc1602b5b557b1e6981 /openpicc/application/cmd.c | |
parent | ee1f021427f8966fb29e70eab1a3be4345af65b1 (diff) |
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
Diffstat (limited to 'openpicc/application/cmd.c')
-rw-r--r-- | openpicc/application/cmd.c | 6 |
1 files changed, 5 insertions, 1 deletions
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" |