From 6304718e371e590b09e176c05df21fc5fb631cec Mon Sep 17 00:00:00 2001 From: henryk Date: Wed, 5 Mar 2008 05:03:36 +0000 Subject: 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 --- openpicc/application/cmd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openpicc/application/cmd.c') 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"); -- cgit v1.2.3