summaryrefslogtreecommitdiff
path: root/usrp2/firmware/apps/app_common_v2.c
diff options
context:
space:
mode:
authorMatt Ettus2010-02-14 10:05:36 -0800
committerMatt Ettus2010-02-14 10:05:36 -0800
commit82dd3940e79adbebe5b05edd8ee6499be017018f (patch)
treeacd535e443dca6d083ac4e6a05f30bc6428dadc4 /usrp2/firmware/apps/app_common_v2.c
parente566be1bb983a0f4f284081760b6f91d9986d394 (diff)
downloadgnuradio-82dd3940e79adbebe5b05edd8ee6499be017018f.tar.gz
gnuradio-82dd3940e79adbebe5b05edd8ee6499be017018f.tar.bz2
gnuradio-82dd3940e79adbebe5b05edd8ee6499be017018f.zip
test the ability to read default eeprom values, for D. Symeonidis
Diffstat (limited to 'usrp2/firmware/apps/app_common_v2.c')
-rw-r--r--usrp2/firmware/apps/app_common_v2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usrp2/firmware/apps/app_common_v2.c b/usrp2/firmware/apps/app_common_v2.c
index 2d131bda7..7bd30211e 100644
--- a/usrp2/firmware/apps/app_common_v2.c
+++ b/usrp2/firmware/apps/app_common_v2.c
@@ -31,6 +31,8 @@
#include "clocks.h"
#include "u2_init.h"
#include <string.h>
+//#include "db_init.h"
+#include "usrp2_i2c_addr.h"
volatile bool link_is_up = false; // eth handler sets this
int cpu_tx_buf_dest_port = PORT_ETH;
@@ -308,7 +310,7 @@ read_time_cmd(const op_generic_t *p,
static void
fill_db_info(u2_db_info_t *p, const struct db_base *db)
{
- p->dbid = db->dbid;
+ //p->dbid = db->dbid;
p->freq_min_hi = u2_fxpt_freq_hi(db->freq_min);
p->freq_min_lo = u2_fxpt_freq_lo(db->freq_min);
p->freq_max_hi = u2_fxpt_freq_hi(db->freq_max);
@@ -334,6 +336,9 @@ dboard_info_cmd(const op_generic_t *p,
fill_db_info(&r->tx_db_info, tx_dboard);
fill_db_info(&r->rx_db_info, rx_dboard);
+ r->tx_db_info.dbid = read_dboard_eeprom(I2C_ADDR_TX_A);
+ r->rx_db_info.dbid = read_dboard_eeprom(I2C_ADDR_RX_A);
+
return r->len;
}