diff options
author | Johnathan Corgan | 2010-04-16 15:32:55 -0700 |
---|---|---|
committer | Johnathan Corgan | 2010-04-16 15:32:55 -0700 |
commit | aeba81012857f6a73c125b8d035c3c15572b3439 (patch) | |
tree | b107fc42f149325353dad52cb77f6ae607f10dcc /usrp2/firmware/lib/adf4350.c | |
parent | a301c47751cb61116ae8f49f6b693b3ca6fbadc3 (diff) | |
parent | 23fcf0ccf9ac30a95afcbba99e478af9ce2081dc (diff) | |
download | gnuradio-aeba81012857f6a73c125b8d035c3c15572b3439.tar.gz gnuradio-aeba81012857f6a73c125b8d035c3c15572b3439.tar.bz2 gnuradio-aeba81012857f6a73c125b8d035c3c15572b3439.zip |
Merge commit 'jabele/wbx_tuning'
* commit 'jabele/wbx_tuning':
Fix WBX tuning to allow DDC use in reaching 50MHz
Diffstat (limited to 'usrp2/firmware/lib/adf4350.c')
-rw-r--r-- | usrp2/firmware/lib/adf4350.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usrp2/firmware/lib/adf4350.c b/usrp2/firmware/lib/adf4350.c index 0725c9337..dbab654ea 100644 --- a/usrp2/firmware/lib/adf4350.c +++ b/usrp2/firmware/lib/adf4350.c @@ -30,7 +30,7 @@ #define MIN_VCO_FREQ U2_DOUBLE_TO_FXPT_FREQ(2.2e9) /* minimum vco freq */ #define MAX_VCO_FREQ U2_DOUBLE_TO_FXPT_FREQ(4.4e9) /* minimum vco freq */ #define MAX_FREQ MAX_VCO_FREQ /* upper bound freq (rf div = 1) */ -#define MIN_FREQ DIV_ROUND(MIN_VCO_FREQ, MAX_RF_DIV) /* calculated lower bound freq */ +#define MIN_FREQ U2_DOUBLE_TO_FXPT_FREQ(68.75e6) /* lower bound freq (rf div = 16) */ u2_fxpt_freq_t adf4350_get_max_freq(void){ return MAX_FREQ; @@ -170,7 +170,7 @@ bool adf4350_set_freq(u2_fxpt_freq_t freq, struct db_base *dbb){ adf4350_load_register(2, dbb); adf4350_load_register(4, dbb); adf4350_load_register(0, dbb); /* register 0 must be last */ - return true; + return adf4350_get_locked(dbb); } u2_fxpt_freq_t adf4350_get_freq(struct db_base *dbb){ |