From 40d6c72b9b62f7074a0607479b6a093f66c7c364 Mon Sep 17 00:00:00 2001 From: jblum Date: Mon, 2 Feb 2009 18:51:13 +0000 Subject: work in progress: setting gpio on xcvr git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10375 221aa14e-8319-0410-a670-987f0aec2ac5 --- usrp2/firmware/lib/db_rfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usrp2/firmware/lib/db_rfx.c') diff --git a/usrp2/firmware/lib/db_rfx.c b/usrp2/firmware/lib/db_rfx.c index b127f2c33..0d5c89a81 100644 --- a/usrp2/firmware/lib/db_rfx.c +++ b/usrp2/firmware/lib/db_rfx.c @@ -488,7 +488,7 @@ rfx_set_freq(struct db_base *dbb, u2_fxpt_freq_t freq, u2_fxpt_freq_t *dc) *dc = 0; struct db_rfx_dummy *db = (struct db_rfx_dummy *) dbb; - u2_fxpt_freq_t desired_n = ((1LL<<20)*db->common.freq_mult*(freq+db->common.freq_offset))/phdet_freq; + u2_fxpt_freq_t desired_n = (U2_DOUBLE_TO_FXPT_FREQ(1.0)*db->common.freq_mult*(freq+db->common.freq_offset))/phdet_freq; int N_DIV = u2_fxpt_freq_round_to_int(desired_n); int B = N_DIV/PRESCALER; int A = N_DIV - PRESCALER*B; -- cgit