Skip to content
Snippets Groups Projects
Commit 9e60febb authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
Browse files

Cleanup messages a bit

parent 599e172a
No related branches found
No related tags found
1 merge request!653Adding sync code, to re-sync ADCs on startup.
......@@ -601,7 +601,7 @@ int iop_adc_sync_cards( adcInfo_t* adcinfo )
udelay(1);
adc_wait_time_ns = timer_tock_ns( &wait_start_tsc );
}
RTSLOG_WARN("It took %d ns to read card %d\n", adc_wait_time_ns, card);
RTSLOG_DEBUG("iop_adc_sync_cards() - It took %d ns to read card %d\n", adc_wait_time_ns, card);
if( adc_wait_time_ns >= adc_wait_limit_ns) {
slow_cards[jj] = 1;
}
......@@ -635,11 +635,13 @@ int iop_adc_sync_cards( adcInfo_t* adcinfo )
} //End loop over ADCs
//If we had to wait longer for any other card than the first one,
//than means we are unsynchronized
not_synced = 0;
for(jj=1; jj<cdsPciModules.adcCount; ++jj) {
if ( slow_cards[jj] == 1) {
not_synced = 1;
RTSLOG_WARN("Not synced detected!!!\n");
RTSLOG_INFO("iop_adc_sync_cards() - Unsynchronized card detected at read order %d, card %d \n", jj, card);
}
}
......@@ -658,6 +660,7 @@ int iop_adc_sync_cards( adcInfo_t* adcinfo )
if( attempts >= 10 ) return -1;
RTSLOG_INFO("iop_adc_sync_cards() - Cards now appear to be synchronized.\n");
return 0;
}
......@@ -707,7 +710,7 @@ static int read_from_adc(adcInfo_t* adcinfo, unsigned adc_index)
udelay(1);
adc_wait_time_ns = timer_tock_ns( &wait_start_tsc );
}
RTSLOG_WARN("It took %lu ns to read card %d in single ADC read\n", adc_wait_time_ns, card);
RTSLOG_DEBUG("It took %lu ns to read card %d in single ADC read\n", adc_wait_time_ns, card);
packedData = cdsPciModules.pci_adc[ card ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment