diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2008-03-05 05:03:36 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2008-03-05 05:03:36 +0000 |
commit | 6304718e371e590b09e176c05df21fc5fb631cec (patch) | |
tree | 49004ef275322a779594d8ebd5d69c9da8ba1d4e /openpicc/application/cmd.c | |
parent | 3ee3c4a649545d1f132bca61cc7484f0d5c92638 (diff) |
Port over the differential miller decoder from the sniffonly host tool
Move clock switch to its own header file
Specify default (and for non-clock switching capable hardware: single) clock source in hardware definitions
git-svn-id: https://svn.openpcd.org:2342/trunk@443 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/cmd.c')
-rw-r--r-- | openpicc/application/cmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openpicc/application/cmd.c b/openpicc/application/cmd.c index 50b59d3..5991694 100644 --- a/openpicc/application/cmd.c +++ b/openpicc/application/cmd.c @@ -19,6 +19,7 @@ #include "tc_cdiv_sync.h" #include "pio_irq.h" #include "ssc.h" +#include "clock_switch.h" #include "usb_print.h" #include "load_modulation.h" #include "tc_sniffer.h" @@ -374,8 +375,8 @@ void prvExecCommand(u_int32_t cmd, portCHAR *args) { DumpStringToUSB("* This hardware is not clock switching capable\n\r"); break; } - clock_select = (clock_select+1) % _MAX_CLOCK_SOURCES; - ssc_select_clock(clock_select); + clock_select = (clock_select+1) % 2; + clock_switch(clock_select); DumpStringToUSB("Active clock is now "); DumpUIntToUSB(clock_select); DumpStringToUSB("\n\r"); |