From 9c177f4194a3ed52ba6e94c66851a0f635c61fd5 Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 19 Jun 2009 19:48:43 +0000 Subject: test for clock locking git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11241 221aa14e-8319-0410-a670-987f0aec2ac5 --- usrp2/firmware/apps/burnrev40.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'usrp2/firmware/apps/burnrev40.c') 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 #include #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"); + } -- cgit