diff options
Diffstat (limited to 'usrp2')
-rw-r--r-- | usrp2/firmware/lib/clocks.c | 8 | ||||
-rw-r--r-- | usrp2/firmware/lib/clocks.h | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/usrp2/firmware/lib/clocks.c b/usrp2/firmware/lib/clocks.c index 0b0467346..0dbf3f90e 100644 --- a/usrp2/firmware/lib/clocks.c +++ b/usrp2/firmware/lib/clocks.c @@ -113,6 +113,14 @@ clocks_mimo_config(int flags) clocks_enable_clkexp_out(false,0); } +bool +clocks_lock_detect() +{ + if(pic_regs->pending & PIC_CLKSTATUS) + return true; + return false; +} + int inline clocks_gen_div(int divisor) { diff --git a/usrp2/firmware/lib/clocks.h b/usrp2/firmware/lib/clocks.h index 4d44bca79..39a0893c1 100644 --- a/usrp2/firmware/lib/clocks.h +++ b/usrp2/firmware/lib/clocks.h @@ -44,6 +44,11 @@ void clocks_init(void); void clocks_mimo_config(int flags); /*! + * \brief Lock Detect -- Return True if our PLL is locked + */ +bool clocks_lock_detect(); + +/*! * \brief Enable or disable test clock (extra clock signal) */ void clocks_enable_test_clk(bool enable, int divisor); |