From: matt Date: Mon, 25 May 2009 19:25:29 +0000 (+0000) Subject: remove direct calls to ad9510 and use api instead X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=803c7b12891f48df0eaad3d6e527a776987cf106;p=debian%2Fgnuradio remove direct calls to ad9510 and use api instead git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11117 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/usrp2/firmware/apps/serdes_to_dsp.c b/usrp2/firmware/apps/serdes_to_dsp.c index ff226bd9..a9876d99 100644 --- a/usrp2/firmware/apps/serdes_to_dsp.c +++ b/usrp2/firmware/apps/serdes_to_dsp.c @@ -31,7 +31,6 @@ #include "usrp2_eth_packet.h" #include "dbsm.h" #include "app_common.h" -#include #include #include #include @@ -140,17 +139,9 @@ main(void) // Get our clock from the mimo interface - // if(I WANT TO LOCK TO A REFERENCE CLOCK) - // Reg 8, Charge pump on, dig lock det, positive PFD, 47 - ad9510_write_reg(0x08, 0x47); - ad9510_write_reg(0x5A, 0x01); // Update Regs - // if (LOCK_TO_MIMO_REF) - - // Turn on ref output and choose the MIMO connector - output_regs->clk_ctrl = 0x15; - // Turn on ref output and choose the SMA connector - //output_regs->clk_ctrl = 0x14; - + clocks_enable_test_clk(true,1); + clocks_mimo_config(MC_WE_LOCK_TO_MIMO); + // setup tx gpio bits for GPIOM_FPGA_1 -- fpga debug output //hal_gpio_set_sels(GPIO_TX_BANK, "1111111111111111"); //hal_gpio_set_sels(GPIO_RX_BANK, "1111111111111111");