summaryrefslogtreecommitdiff
path: root/usrp2/firmware/lib
diff options
context:
space:
mode:
authormatt2009-02-23 17:40:09 +0000
committermatt2009-02-23 17:40:09 +0000
commite070cdadef33a956b210fb23c9b444d5d855c681 (patch)
treec311d9bcbdb4eedf85de03b4954646fdbe03bf4c /usrp2/firmware/lib
parent000d018bf144a507a11fdaa66c96b28206a1dbfc (diff)
downloadgnuradio-e070cdadef33a956b210fb23c9b444d5d855c681.tar.gz
gnuradio-e070cdadef33a956b210fb23c9b444d5d855c681.tar.bz2
gnuradio-e070cdadef33a956b210fb23c9b444d5d855c681.zip
support for unmodified dbsrx boards
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10481 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/firmware/lib')
-rw-r--r--usrp2/firmware/lib/db_dbsrx.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/usrp2/firmware/lib/db_dbsrx.c b/usrp2/firmware/lib/db_dbsrx.c
index 6e261cc3a..d7433f254 100644
--- a/usrp2/firmware/lib/db_dbsrx.c
+++ b/usrp2/firmware/lib/db_dbsrx.c
@@ -22,6 +22,7 @@
#include <memory_map.h>
#include <clocks.h>
#include <stdio.h>
+#include <hal_io.h>
#define min(X,Y) ((X) < (Y) ? (X) : (Y))
#define max(X,Y) ((X) > (Y) ? (X) : (Y))
@@ -68,10 +69,10 @@ struct db_dbsrx {
};
struct db_dbsrx db_dbsrx = {
- .base.dbid = 0x000d,
+ .base.dbid = 0x0002,
.base.is_tx = false,
- .base.output_enables = 0x0000,
- .base.used_pins = 0x0000,
+ .base.output_enables = 0x0001,
+ .base.used_pins = 0x0001,
.base.freq_min = U2_DOUBLE_TO_FXPT_FREQ(500e6),
.base.freq_max = U2_DOUBLE_TO_FXPT_FREQ(2.6e9),
.base.gain_min = U2_DOUBLE_TO_FXPT_GAIN(0),
@@ -109,6 +110,10 @@ db_dbsrx_init(struct db_base *dbb){
struct db_dbsrx_dummy *db = (struct db_dbsrx_dummy *) dbb;
db->base.set_gain(dbb, (db->base.gain_max + db->base.gain_min)/2);
clocks_enable_rx_dboard(true, REFCLK_DIVISOR); // Gives 4 MHz clock
+
+ hal_gpio_set_sel(GPIO_RX_BANK, 0, '1');
+
+
return true;
}