commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r11118 - gnuradio/trunk/usrp2/firmware/apps


From: matt
Subject: [Commit-gnuradio] r11118 - gnuradio/trunk/usrp2/firmware/apps
Date: Mon, 25 May 2009 13:26:41 -0600 (MDT)

Author: matt
Date: 2009-05-25 13:26:40 -0600 (Mon, 25 May 2009)
New Revision: 11118

Modified:
   gnuradio/trunk/usrp2/firmware/apps/factory_test.c
Log:
remove EEPROM setting, complete tests even if SD fails


Modified: gnuradio/trunk/usrp2/firmware/apps/factory_test.c
===================================================================
--- gnuradio/trunk/usrp2/firmware/apps/factory_test.c   2009-05-25 19:25:29 UTC 
(rev 11117)
+++ gnuradio/trunk/usrp2/firmware/apps/factory_test.c   2009-05-25 19:26:40 UTC 
(rev 11118)
@@ -40,9 +40,6 @@
 #include <clocks.h>
 #include "sd.h"
 
-#define HW_REV_MAJOR 3
-#define HW_REV_MINOR 1
-
 #define FW_SETS_SEQNO  1       // define to 0 or 1 (FIXME must be 1 for now)
 
 #if (FW_SETS_SEQNO)
@@ -329,29 +326,17 @@
 {
   u2_init();
 
-  putstr("\nFactory Test TXRX\n");
+  putstr("\nFactory Test\n");
 
-  bool ok = true;
-  unsigned char maj = HW_REV_MAJOR;
-  unsigned char min = HW_REV_MINOR;
-  ok = eeprom_write(I2C_ADDR_MBOARD, MBOARD_REV_MSB, &maj, 1);
-  ok &= eeprom_write(I2C_ADDR_MBOARD, MBOARD_REV_LSB, &min, 1);
+  print_mac_addr(ethernet_mac_addr()->addr);
+  newline();
 
-  putstr("\nset_hw_rev\n");
-  if (ok)
-    printf("OK: set h/w rev to %d.%d\n", HW_REV_MAJOR, HW_REV_MINOR);
-  else {
-    printf("FAILED to set h/w rev to %d.%d\n", HW_REV_MAJOR, HW_REV_MINOR);
-    hal_finish();
-    return 0;
-  }
-
   if(test_sd())
     puts("SD OK\n");
   else {
     puts("SD FAIL\n");
-    hal_finish();
-    return 0;
+    //    hal_finish();
+    //return 0;
   }
   if(test_ram())
     puts("RAM OK\n");





reply via email to

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