summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-02-19 16:53:56 -0800
committerJosh Blum <josh@joshknows.com>2010-02-19 16:53:56 -0800
commitaab51fa40769bb77af73aba69e16c9ac28e4943f (patch)
tree593c141454e33eca0d0acd9a1e59f93d5b483d40 /firmware/microblaze
parentea9d55b17b181495b4217c222bbf1b77519a802e (diff)
downloaduhd-aab51fa40769bb77af73aba69e16c9ac28e4943f.tar.gz
uhd-aab51fa40769bb77af73aba69e16c9ac28e4943f.tar.bz2
uhd-aab51fa40769bb77af73aba69e16c9ac28e4943f.zip
DDC enable with stream at control OTW
Diffstat (limited to 'firmware/microblaze')
-rw-r--r--firmware/microblaze/apps/txrx.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/firmware/microblaze/apps/txrx.c b/firmware/microblaze/apps/txrx.c
index 686fda2fd..77c8e498c 100644
--- a/firmware/microblaze/apps/txrx.c
+++ b/firmware/microblaze/apps/txrx.c
@@ -139,6 +139,9 @@ bool is_streaming(void){ return streaming_p; }
// ----------------------------------------------------------------
+void start_rx_streaming_cmd(void *p);
+void stop_rx_cmd(void);
+
static eth_mac_addr_t get_my_eth_mac_addr(void){
return *ethernet_mac_addr();
}
@@ -413,6 +416,19 @@ void handle_udp_ctrl_packet(
ctrl_data_out.id = USRP2_CTRL_ID_TOTALLY_SETUP_THE_DDC_DUDE;
break;
+ case USRP2_CTRL_ID_CONFIGURE_STREAMING_FOR_ME_BRO:
+ time_secs = ctrl_data_in->data.streaming.secs;
+ time_ticks = ctrl_data_in->data.streaming.ticks;
+ if (ctrl_data_in->data.streaming.enabled == 0){
+ stop_rx_cmd();
+ }
+ else{
+ start_rx_streaming_cmd(NULL);
+ }
+
+ ctrl_data_out.id = USRP2_CTRL_ID_CONFIGURED_THAT_STREAMING_DUDE;
+ break;
+
/*******************************************************************
* DUC
******************************************************************/
@@ -602,7 +618,7 @@ stop_rx_cmd(void)
}
-static void
+/*static void
setup_tx()
{
sr_tx_ctrl->clear_state = 1;
@@ -617,7 +633,7 @@ setup_tx()
dsp_tx_regs->freq = 0;
dsp_tx_regs->scale_iq = (tx_scale << 16) | tx_scale;
dsp_tx_regs->interp_rate = interp;
-}
+}*/
#if (FW_SETS_SEQNO)
@@ -710,7 +726,7 @@ main(void)
// program tx registers
- setup_tx();
+ //setup_tx();
// kick off the state machine
dbsm_start(&dsp_tx_sm);