aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/fx2/usrp1/usrp_gpif_inline.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-05 21:22:54 -0700
committerJosh Blum <josh@joshknows.com>2010-11-05 21:22:54 -0700
commit374f6ff05e66d10830a7567d2d793de2bf77c06b (patch)
treeca170bd9473de690ffff45b2041cf10f83fb0228 /firmware/fx2/usrp1/usrp_gpif_inline.h
parent92b5034cb5a6e17fe7ebc437f7ef26147d69eba3 (diff)
parentc2cc364f9fde9633e2d7c04fa5b07275e17ba093 (diff)
downloaduhd-374f6ff05e66d10830a7567d2d793de2bf77c06b.tar.gz
uhd-374f6ff05e66d10830a7567d2d793de2bf77c06b.tar.bz2
uhd-374f6ff05e66d10830a7567d2d793de2bf77c06b.zip
Merge branch 'master' into flow_ctrl
Conflicts: host/lib/usrp/usrp2/mboard_impl.cpp host/lib/usrp/usrp2/usrp2_impl.hpp
Diffstat (limited to 'firmware/fx2/usrp1/usrp_gpif_inline.h')
-rw-r--r--firmware/fx2/usrp1/usrp_gpif_inline.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/firmware/fx2/usrp1/usrp_gpif_inline.h b/firmware/fx2/usrp1/usrp_gpif_inline.h
new file mode 100644
index 000000000..77a741a8b
--- /dev/null
+++ b/firmware/fx2/usrp1/usrp_gpif_inline.h
@@ -0,0 +1,27 @@
+/*
+ * Machine generated by "edit-gpif". Do not edit by hand.
+ */
+
+#define setup_flowstate_common() \
+do { \
+ FLOWSTATE = 0x81; \
+ FLOWLOGIC = 0x2d; \
+ FLOWEQ0CTL = 0x26; \
+ FLOWEQ1CTL = 0x00; \
+ FLOWHOLDOFF = 0x04; \
+ FLOWSTB = 0x04; \
+ FLOWSTBEDGE = 0x03; \
+FLOWSTBHPERIOD = 0x02; \
+GPIFHOLDAMOUNT = 0x00; \
+} while (0)
+
+#define setup_flowstate_read() \
+do { \
+ FLOWEQ0CTL = 0x26; \
+} while (0)
+
+#define setup_flowstate_write() \
+do { \
+ FLOWEQ0CTL = 0x21; \
+} while (0)
+