summaryrefslogtreecommitdiff
path: root/usrp2/firmware/lib
diff options
context:
space:
mode:
authoreb2009-03-05 01:21:44 +0000
committereb2009-03-05 01:21:44 +0000
commit976df9d40be11a16900464a7ef44603856f0c5a1 (patch)
tree628c010e20caea02a6c00850afd01d975add03b7 /usrp2/firmware/lib
parent1cf496ea123d149c280f6158aa98bb2d503c23ea (diff)
downloadgnuradio-976df9d40be11a16900464a7ef44603856f0c5a1.tar.gz
gnuradio-976df9d40be11a16900464a7ef44603856f0c5a1.tar.bz2
gnuradio-976df9d40be11a16900464a7ef44603856f0c5a1.zip
New standalone firmware, burn_dbsrx_eeprom, that burns new dbid into
modified DBS Rx daughterboard. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10560 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/firmware/lib')
-rw-r--r--usrp2/firmware/lib/db_init.c2
-rw-r--r--usrp2/firmware/lib/hal_io.h6
2 files changed, 1 insertions, 7 deletions
diff --git a/usrp2/firmware/lib/db_init.c b/usrp2/firmware/lib/db_init.c
index 0aef75e57..f54fc0ae3 100644
--- a/usrp2/firmware/lib/db_init.c
+++ b/usrp2/firmware/lib/db_init.c
@@ -104,7 +104,7 @@ read_raw_dboard_eeprom (unsigned char *buf, int i2c_addr)
/*
* Return DBID, -1 <none> or -2 <invalid eeprom contents>
*/
-static int
+int
read_dboard_eeprom(int i2c_addr)
{
unsigned char buf[DB_EEPROM_CLEN];
diff --git a/usrp2/firmware/lib/hal_io.h b/usrp2/firmware/lib/hal_io.h
index 5ffebf57b..a49750a6d 100644
--- a/usrp2/firmware/lib/hal_io.h
+++ b/usrp2/firmware/lib/hal_io.h
@@ -91,12 +91,6 @@ int hal_gpio_read(int bank);
* ------------------------------------------------------------------------
*/
-#define LED_0 0x0001
-#define LED_1 0x0002
-#define LED_3 0x0004
-#define LED_4 0x0008
-#define LED_ETH_CONN 0x0010
-
void hal_set_leds(int value, int mask);
void hal_toggle_leds(int mask);