commit-gnuradio
[Top][All Lists]
Advanced

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

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


From: matt
Subject: [Commit-gnuradio] r11120 - gnuradio/trunk/usrp2/firmware/lib
Date: Mon, 25 May 2009 13:29:35 -0600 (MDT)

Author: matt
Date: 2009-05-25 13:29:34 -0600 (Mon, 25 May 2009)
New Revision: 11120

Modified:
   gnuradio/trunk/usrp2/firmware/lib/db_dbsrx.c
Log:
remove printfs to save space.  


Modified: gnuradio/trunk/usrp2/firmware/lib/db_dbsrx.c
===================================================================
--- gnuradio/trunk/usrp2/firmware/lib/db_dbsrx.c        2009-05-25 19:28:33 UTC 
(rev 11119)
+++ gnuradio/trunk/usrp2/firmware/lib/db_dbsrx.c        2009-05-25 19:29:34 UTC 
(rev 11120)
@@ -122,8 +122,8 @@
   unsigned char readback[2];
   i2c_read(I2C_ADDR, readback, 2*sizeof(unsigned char));
   int adc_val = (readback[0] >> 2)&7;
-  printf("READBACK[0] %d, [1] %d\n",readback[0],readback[1]);
-  printf("ADC: %d\n",adc_val);
+  //printf("READBACK[0] %d, [1] %d\n",readback[0],readback[1]);
+  //printf("ADC: %d\n",adc_val);
   return adc_val;
 }
 
@@ -134,7 +134,7 @@
   args[0] = (unsigned char)regno;
   args[1] = (unsigned char)v;
   i2c_write(I2C_ADDR, args, 2*sizeof(unsigned char));
-  printf("Reg %d, Val %x\n",regno,v);
+  //printf("Reg %d, Val %x\n",regno,v);
 }
 
 static void _send_reg_0(struct db_dbsrx_dummy *db){
@@ -236,7 +236,7 @@
   while ((r_reg<7) && ((2<<r_reg) < rmin)) {
     r_reg++;
   }
-  printf ("r_reg = %d, r = %d\n",r_reg,2<<r_reg);
+  //printf ("r_reg = %d, r = %d\n",r_reg,2<<r_reg);
   int best_r = r_reg;
   int best_n = 0;
 
@@ -262,8 +262,8 @@
     r_reg++;
   }
 
-  printf("BEST R: %d  Best Delta %d  Best N %d\n",
-        best_r,u2_fxpt_freq_round_to_int(best_delta),best_n);
+  //printf("BEST R: %d  Best Delta %d  Best N %d\n",
+  // best_r,u2_fxpt_freq_round_to_int(best_delta),best_n);
   _set_r(db, best_r);
   _set_n(db, best_n);
  
@@ -284,14 +284,14 @@
     vco=6;
   else
     vco=7;
-  printf("Initial VCO choice %d\n",vco);  
+  //printf("Initial VCO choice %d\n",vco);  
   _set_osc(db, vco);
   
 
   int adc_val = 0;
   while(adc_val == 0 || adc_val == 7) {
     adc_val = _read_adc();
-    printf("adc %d\n",adc_val);
+    //printf("adc %d\n",adc_val);
 
     if(adc_val == 0) {
       if(vco <= 0) {
@@ -321,7 +321,7 @@
   else {
     _set_cp(db, 3);
   }
-  printf("Final VCO choice %d\n",vco);  
+  //printf("Final VCO choice %d\n",vco);  
 
   *dc = db->common.d_n * REFCLK_FREQ / (2<<db->common.d_r_reg);
   return true;





reply via email to

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