diff options
author | Nick Foster <nick@nerdnetworks.org> | 2010-07-29 10:12:45 -0700 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2010-07-29 10:12:45 -0700 |
commit | f39c4538a3ca25c79f6b793ee0b6448051dcd751 (patch) | |
tree | d1bb5ccad239d8618a66e5c6a0eb14079c211429 /firmware/microblaze/lib/u2_init.c | |
parent | f9cec099f9909bbdf7b9f1c20db9c81173a9b98d (diff) | |
download | uhd-f39c4538a3ca25c79f6b793ee0b6448051dcd751.tar.gz uhd-f39c4538a3ca25c79f6b793ee0b6448051dcd751.tar.bz2 uhd-f39c4538a3ca25c79f6b793ee0b6448051dcd751.zip |
Clock bugs, LED order.
Figured out cold-start problem with Matt's help -- the DCM wasn't being
reset. This also explains why USRP2 didn't like it when
clocks_mimo_config was omitted -- it was sneakily resetting the DCM
while enabling/disabling ref outputs.
Also re-did USRP2P LED order and genericized the LED settings so LED_D
is LED_D for both USRP2 and USRP2P.
Diffstat (limited to 'firmware/microblaze/lib/u2_init.c')
-rw-r--r-- | firmware/microblaze/lib/u2_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/microblaze/lib/u2_init.c b/firmware/microblaze/lib/u2_init.c index ff558d673..75bc40859 100644 --- a/firmware/microblaze/lib/u2_init.c +++ b/firmware/microblaze/lib/u2_init.c @@ -26,6 +26,7 @@ #include "mdelay.h" #include "clocks.h" #include "usrp2/fw_common.h" +#include "nonstdio.h" unsigned char u2_hw_rev_major; unsigned char u2_hw_rev_minor; @@ -66,7 +67,7 @@ u2_init(void) mdelay(100); hal_set_leds(0x1f, 0x1f); mdelay(100); - hal_set_leds(0x1, 0x1f); // Leave the first one on + hal_set_leds(LED_D, 0x1f); // Leave one on #if 0 // test register readback |