aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_e/usrp_e_regs.hpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-03 11:30:17 +0000
committerJosh Blum <josh@joshknows.com>2010-05-03 11:30:17 +0000
commit2e222f4a77df389551d08b42a1bf947487d1442f (patch)
treee2c9018e3471591e0a912955a16a030d59f808bd /host/lib/usrp/usrp_e/usrp_e_regs.hpp
parentf92582169e35f96a945f745ce46326230b25888d (diff)
downloaduhd-2e222f4a77df389551d08b42a1bf947487d1442f.tar.gz
uhd-2e222f4a77df389551d08b42a1bf947487d1442f.tar.bz2
uhd-2e222f4a77df389551d08b42a1bf947487d1442f.zip
spi working, talked to ad9522
Diffstat (limited to 'host/lib/usrp/usrp_e/usrp_e_regs.hpp')
-rw-r--r--host/lib/usrp/usrp_e/usrp_e_regs.hpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/host/lib/usrp/usrp_e/usrp_e_regs.hpp b/host/lib/usrp/usrp_e/usrp_e_regs.hpp
index 46df8d089..7f35212f4 100644
--- a/host/lib/usrp/usrp_e/usrp_e_regs.hpp
+++ b/host/lib/usrp/usrp_e/usrp_e_regs.hpp
@@ -50,15 +50,11 @@
#define UE_REG_SPI_BASE UE_REG_SLAVE(2)
-//spi slave constants (copied from usrp2, TODO FIXME)
-#define UE_SPI_SS_AD9522 1
-#define UE_SPI_SS_AD9777 2
-#define UE_SPI_SS_RX_DAC 4
-#define UE_SPI_SS_RX_ADC 8
-#define UE_SPI_SS_RX_DB 16
-#define UE_SPI_SS_TX_DAC 32
-#define UE_SPI_SS_TX_ADC 64
-#define UE_SPI_SS_TX_DB 128
+//spi slave constants
+#define UE_SPI_SS_AD9522 (1 << 3)
+#define UE_SPI_SS_AD9862 (1 << 2)
+#define UE_SPI_SS_TX_DB (1 << 1)
+#define UE_SPI_SS_RX_DB (1 << 0)
////////////////////////////////////////////////
// Slave 3 -- I2C Core