diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-10 14:47:03 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-10 14:47:03 -0800 |
commit | 8e9a8464386db03a596e0b88d0714d22723d37d0 (patch) | |
tree | de6a35865ba1d54bb4d908d86397aeba459b3e01 /firmware/microblaze/apps | |
parent | bb86022d5a5f7055cdeebaeb4a55216e1a056fd4 (diff) | |
download | uhd-8e9a8464386db03a596e0b88d0714d22723d37d0.tar.gz uhd-8e9a8464386db03a596e0b88d0714d22723d37d0.tar.bz2 uhd-8e9a8464386db03a596e0b88d0714d22723d37d0.zip |
Added simple device to handle wrapping general properties up into simple api.
Added setting time capability to the usrp2 impl.
Messing with props and time specs...
Diffstat (limited to 'firmware/microblaze/apps')
-rw-r--r-- | firmware/microblaze/apps/txrx.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/microblaze/apps/txrx.c b/firmware/microblaze/apps/txrx.c index 1b3299150..18bbdd23d 100644 --- a/firmware/microblaze/apps/txrx.c +++ b/firmware/microblaze/apps/txrx.c @@ -489,6 +489,16 @@ void handle_udp_ctrl_packet( ctrl_data_out.id = USRP2_CTRL_ID_TOTALLY_SETUP_THE_DUC_DUDE; break; + /******************************************************************* + * Time Config + ******************************************************************/ + case USRP2_CTRL_ID_GOT_A_NEW_TIME_FOR_YOU_BRO: + sr_time64->imm = (ctrl_data_in->data.time_args.now == 0)? 0 : 1; + sr_time64->ticks = ctrl_data_in->data.time_args.ticks; + sr_time64->secs = ctrl_data_in->data.time_args.secs; //set this last to latch the regs + ctrl_data_out.id = USRP2_CTRL_ID_SWEET_I_GOT_THAT_TIME_DUDE; + break; + default: ctrl_data_out.id = USRP2_CTRL_ID_HUH_WHAT; |