summaryrefslogtreecommitdiff
path: root/usrp2/firmware/apps/burnrev40.c
diff options
context:
space:
mode:
authormatt2009-06-19 19:48:43 +0000
committermatt2009-06-19 19:48:43 +0000
commit9c177f4194a3ed52ba6e94c66851a0f635c61fd5 (patch)
tree36c7d75679045a6fdcbb544bbd6da819c628fa74 /usrp2/firmware/apps/burnrev40.c
parentb7bc816f69b0950b31d9cdf1ec8ad45c0a2eaa7c (diff)
downloadgnuradio-9c177f4194a3ed52ba6e94c66851a0f635c61fd5.tar.gz
gnuradio-9c177f4194a3ed52ba6e94c66851a0f635c61fd5.tar.bz2
gnuradio-9c177f4194a3ed52ba6e94c66851a0f635c61fd5.zip
test for clock locking
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11241 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/firmware/apps/burnrev40.c')
-rw-r--r--usrp2/firmware/apps/burnrev40.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/usrp2/firmware/apps/burnrev40.c b/usrp2/firmware/apps/burnrev40.c
index 719795933..5197f5358 100644
--- a/usrp2/firmware/apps/burnrev40.c
+++ b/usrp2/firmware/apps/burnrev40.c
@@ -39,6 +39,7 @@
#include <usrp2_i2c_addr.h>
#include <clocks.h>
#include "sd.h"
+#include "mdelay.h"
#define HW_REV_MAJOR 4
#define HW_REV_MINOR 0
@@ -150,4 +151,12 @@ main(void)
print_mac_addr(ethernet_mac_addr()->addr);
newline();
+ clocks_mimo_config(MC_WE_LOCK_TO_SMA);
+
+ while (!clocks_lock_detect()) {
+ puts("No Lock");
+ mdelay(1000);
+ }
+ puts("Clock Locked\n");
+
}