From b34e89b319f8c8144b50bfb6f98221bf776fc503 Mon Sep 17 00:00:00 2001 From: eb Date: Wed, 15 Oct 2008 00:42:58 +0000 Subject: Added firmware support for adc_mux to handle swapping I/Q, etc. Modified dsp_core_rx.v to swap A and B mapping so that the software thinks that the TVRX is connected to A/D A. ISE 10.1 SP3 is required to compile the FPGA successfully. SP2 is insufficient. It compiles with SP2, but the firmware doesn't load. Only the F led is one in that case. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9795 221aa14e-8319-0410-a670-987f0aec2ac5 --- usrp2/firmware/lib/db_tvrx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usrp2/firmware/lib/db_tvrx.c') diff --git a/usrp2/firmware/lib/db_tvrx.c b/usrp2/firmware/lib/db_tvrx.c index 062d71895..73504951f 100644 --- a/usrp2/firmware/lib/db_tvrx.c +++ b/usrp2/firmware/lib/db_tvrx.c @@ -185,7 +185,7 @@ tvrx_set_freq(struct db_base *dbb, u2_fxpt_freq_t freq, u2_fxpt_freq_t *dc) printf("N_DIV = %d, actual_freq = %d, actual_lo_freq = %d\n", N_DIV, u2_fxpt_freq_round_to_int(actual_freq),u2_fxpt_freq_round_to_int(actual_freq)); - char buf[4]; + unsigned char buf[4]; buf[0] = (N_DIV>>8) & 0xff; buf[1] = N_DIV & 0xff; buf[2] = control_byte_1; @@ -200,7 +200,7 @@ tvrx_set_freq(struct db_base *dbb, u2_fxpt_freq_t freq, u2_fxpt_freq_t *dc) bool tvrx_set_gain(struct db_base *dbb, u2_fxpt_gain_t gain) { - struct db_tvrx_dummy *db = (struct db_tvrx_dummy *) dbb; + //struct db_tvrx_dummy *db = (struct db_tvrx_dummy *) dbb; int rfgain; int ifgain; if(gain>U2_DOUBLE_TO_FXPT_GAIN(95.0)) @@ -235,6 +235,6 @@ tvrx_set_gain(struct db_base *dbb, u2_fxpt_gain_t gain) bool tvrx_lock_detect(struct db_base *dbb) { - struct db_tvrx_dummy *db = (struct db_tvrx_dummy *) dbb; + // struct db_tvrx_dummy *db = (struct db_tvrx_dummy *) dbb; return true; } -- cgit