commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r11240 - gnuradio/trunk/usrp2/firmware/lib


From: matt
Subject: [Commit-gnuradio] r11240 - gnuradio/trunk/usrp2/firmware/lib
Date: Fri, 19 Jun 2009 13:41:04 -0600 (MDT)

Author: matt
Date: 2009-06-19 13:41:04 -0600 (Fri, 19 Jun 2009)
New Revision: 11240

Modified:
   gnuradio/trunk/usrp2/firmware/lib/clocks.c
   gnuradio/trunk/usrp2/firmware/lib/clocks.h
Log:
test for clock lock


Modified: gnuradio/trunk/usrp2/firmware/lib/clocks.c
===================================================================
--- gnuradio/trunk/usrp2/firmware/lib/clocks.c  2009-06-19 19:18:42 UTC (rev 
11239)
+++ gnuradio/trunk/usrp2/firmware/lib/clocks.c  2009-06-19 19:41:04 UTC (rev 
11240)
@@ -113,6 +113,14 @@
     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)
 {

Modified: gnuradio/trunk/usrp2/firmware/lib/clocks.h
===================================================================
--- gnuradio/trunk/usrp2/firmware/lib/clocks.h  2009-06-19 19:18:42 UTC (rev 
11239)
+++ gnuradio/trunk/usrp2/firmware/lib/clocks.h  2009-06-19 19:41:04 UTC (rev 
11240)
@@ -44,6 +44,11 @@
 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);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]