summaryrefslogtreecommitdiff
path: root/usrp2/firmware/lib/memory_map.h
diff options
context:
space:
mode:
authorjcorgan2009-04-04 05:59:44 +0000
committerjcorgan2009-04-04 05:59:44 +0000
commit40402fb8f5c1009b6fa205303c7a57b0ae918148 (patch)
tree9faab37d57dc43f2e5c7a56ccec54926929a64c3 /usrp2/firmware/lib/memory_map.h
parent0907e015a341269f1d9fdb556fcadd8c051c7f81 (diff)
downloadgnuradio-40402fb8f5c1009b6fa205303c7a57b0ae918148.tar.gz
gnuradio-40402fb8f5c1009b6fa205303c7a57b0ae918148.tar.bz2
gnuradio-40402fb8f5c1009b6fa205303c7a57b0ae918148.zip
Merged r10712:10765 from jcorgan/gpio into trunk. Adds out-of-band and streaming GPIO functions for USRP2.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10766 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/firmware/lib/memory_map.h')
-rw-r--r--usrp2/firmware/lib/memory_map.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/usrp2/firmware/lib/memory_map.h b/usrp2/firmware/lib/memory_map.h
index fb6fc45d7..78a4330d2 100644
--- a/usrp2/firmware/lib/memory_map.h
+++ b/usrp2/firmware/lib/memory_map.h
@@ -471,6 +471,31 @@ typedef struct {
*/
volatile uint32_t rx_mux; // called adc_mux in dsp_core_rx.v
+ /*!
+ * \brief Streaming GPIO configuration
+ *
+ * This determines whether the LSBs of I and Q samples come from the DSP
+ * pipeline or from the io_rx GPIO pins. To stream GPIO, one must first
+ * set the GPIO data direction register to have io_rx[15] and/or io_rx[14]
+ * configured as inputs. The GPIO pins will be sampled at the time the
+ * remainder of the DSP sample is strobed into the RX sample FIFO. There
+ * will be a decimation-dependent fixed time offset between the GPIO
+ * sample stream and the associated RF samples.
+ *
+ * 3 2 1
+ * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
+ * +-------+-------+-------+-------+-------+-------+-------+-------+
+ * | MBZ |Q|I|
+ * +-------+-------+-------+-------+-------+-------+-------+-------+
+ *
+ * I 0=LSB comes from DSP pipeline (default)
+ * 1=LSB comes from io_rx[15]
+ *
+ * Q 0=LSB comes from DSP pipeline (default)
+ * 1=LSB comes from io_rx[14]
+ */
+ volatile uint32_t gpio_stream_enable;
+
} dsp_rx_regs_t;
#define dsp_rx_regs ((dsp_rx_regs_t *) DSP_RX_BASE)