aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/fx2/usrp1/usrp_gpif_inline.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-05 13:53:39 -0700
committerJosh Blum <josh@joshknows.com>2010-11-05 13:53:39 -0700
commit3ac3457184bc3b251ce7398eee56c931983abe65 (patch)
tree7cfa1ba616788ad083236272a323c3a6e2964da3 /firmware/fx2/usrp1/usrp_gpif_inline.h
parent144ebf29327981db8422049b451852744619678d (diff)
parentc473cc56fafcb47d6ba1f16e8c9fb89ff6c57bca (diff)
downloaduhd-3ac3457184bc3b251ce7398eee56c931983abe65.tar.gz
uhd-3ac3457184bc3b251ce7398eee56c931983abe65.tar.bz2
uhd-3ac3457184bc3b251ce7398eee56c931983abe65.zip
Merge branch 'good_stuff' into mb_eeprom
Conflicts: firmware/fx2/include
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)
+