comparison autocal/txbandmain.c @ 116:4ce87a30383f

fc-rfcal-txband: channel calibration implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 13 Feb 2018 06:22:32 +0000
parents ae8da516681c
children 4c3f4231a021
comparison
equal deleted inserted replaced
115:1e49bb52b07e 116:4ce87a30383f
134 txcal_basis_run(); 134 txcal_basis_run();
135 /* analytical follow-up */ 135 /* analytical follow-up */
136 txcal_basis_compute(); 136 txcal_basis_compute();
137 /* actual Tx levels calibration */ 137 /* actual Tx levels calibration */
138 calibrate_tx_levels(); 138 calibrate_tx_levels();
139 /* channel calibration */
140 calibrate_tx_calchan();
141 printf("Uploading calchan table\n");
142 upload_tx_calchan();
139 143
144 #if 0
140 /* 145 /*
141 * We need to insert a delay between stopping Tx 146 * We need to insert a delay between stopping Tx
142 * and doing the FFS write in order to avoid 147 * and doing the FFS write in order to avoid
143 * an intermittent fw crash on the DUT. 148 * an intermittent fw crash on the DUT.
149 *
150 * This delay may no longer be needed after
151 * the addition of calchan table upload above,
152 * so commenting it out to test.
144 */ 153 */
145 usleep(100000); 154 usleep(100000);
155 #endif
146 156
147 printf("Saving calibrated values in FFS\n"); 157 printf("Saving calibrated values in FFS\n");
148 misc_enable(CFG_WRITE_TX_CAL); 158 misc_enable(CFG_WRITE_TX_CAL);
149 exit(0); 159 exit(0);
150 } 160 }