diff options
author | Josh Blum | 2010-05-18 11:51:31 -0700 |
---|---|---|
committer | Josh Blum | 2010-05-18 11:51:31 -0700 |
commit | 935b9713694359862fd5721a2cf070ac072ce283 (patch) | |
tree | fd3bd402090d689ae114cb5e2968332edb1e20e4 /usrp2/firmware/include | |
parent | b6f86944737975efde1275144c1c344e4a633146 (diff) | |
parent | a39ca4f36cee81bb44f553c1a1d2045a29231e0b (diff) | |
download | gnuradio-935b9713694359862fd5721a2cf070ac072ce283.tar.gz gnuradio-935b9713694359862fd5721a2cf070ac072ce283.tar.bz2 gnuradio-935b9713694359862fd5721a2cf070ac072ce283.zip |
Merge branch 'master' of http://gnuradio.org/git/gnuradio into uhd
Diffstat (limited to 'usrp2/firmware/include')
-rw-r--r-- | usrp2/firmware/include/usrp2_types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usrp2/firmware/include/usrp2_types.h b/usrp2/firmware/include/usrp2_types.h index dd2bcf1ed..32cb25c41 100644 --- a/usrp2/firmware/include/usrp2_types.h +++ b/usrp2/firmware/include/usrp2_types.h @@ -50,6 +50,12 @@ u2_fxpt_freq_round_to_int(u2_fxpt_freq_t fx) return (int)((fx+(1<<(U2_FPF_RP-1)))>>U2_FPF_RP); } +static inline unsigned int +u2_fxpt_freq_round_to_uint(u2_fxpt_freq_t fx) +{ + return (unsigned int)((fx+(1<<(U2_FPF_RP-1)))>>U2_FPF_RP); +} + static inline double u2_fxpt_freq_to_double(u2_fxpt_freq_t fx) { |