summaryrefslogtreecommitdiff
path: root/openpicc/application/cmd.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-12-20 04:02:47 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-12-20 04:02:47 +0000
commit021f73634e525901dd38b206dac35b747c8dd8d2 (patch)
tree2888437eb10689aa049fda2ea8869027a94046bc /openpicc/application/cmd.c
parent5ec39e9732ba29d641c37b7739fbc97643ac1b9d (diff)
Add SSC_DATA_GATE support
git-svn-id: https://svn.openpcd.org:2342/trunk@399 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/cmd.c')
-rw-r--r--openpicc/application/cmd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/openpicc/application/cmd.c b/openpicc/application/cmd.c
index b66c6c8..ac1d605 100644
--- a/openpicc/application/cmd.c
+++ b/openpicc/application/cmd.c
@@ -212,6 +212,17 @@ void prvExecCommand(u_int32_t cmd, portCHAR *args) {
DumpStringToUSB("cdiv_sync enabled \n\r");
}
break;
+#ifdef OPENPICC_MODIFIED_BOARD
+ case 'G':
+ i=atoiEx(args, &args);
+ ssc_set_data_gate(i);
+ if(i==0) {
+ DumpStringToUSB("SSC_DATA disabled \n\r");
+ } else {
+ DumpStringToUSB("SSC_DATA enabled \n\r");
+ }
+ break;
+#endif
case 'D':
i=atoiEx(args, &args);
tc_cdiv_set_divider(i);
@@ -404,6 +415,9 @@ void prvExecCommand(u_int32_t cmd, portCHAR *args) {
" * d div- set tc_cdiv divider value 16, 32, 64, ...\n\r"
" * j,k - increase, decrease fdt_offset\n\r"
" * a - change load modulation level\n\r"
+#ifdef OPENPICC_MODIFIED_BOARD
+ " * g 0/1- disable or enable SSC_DATA through gate\n\r"
+#endif
" * 9 - reset CPU\n\r"
" * ?,h - display this help screen\n\r"
" *\n\r"
personal git repositories of Harald Welte. Your mileage may vary