Skip to content
Snippets Groups Projects
Commit bbf51dde authored by Rolf Bork's avatar Rolf Bork
Browse files

Bug fix for issue #261, 18AI32SSC1M going to 16bit mode.

parent 9c78e876
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ gscDisableAdcClk( CDS_HARDWARE* pHardware, int card )
_adcPtr[ ii ]->SSC &= ~( GSAI_ENABLE_CLOCK );
if ( pHardware->adcType[ ii ] == GSC_18AI64SSC )
_adcPtr[ ii ]->SSC &= ~( GSAI_CLOCK_ENABLE );
_adcPtr[ ii ]->IDBC = ( GSAI_CLEAR_BUFFER | GSAI_THRESHOLD );
_adcPtr[ ii ]->IDBC |= ( GSAI_CLEAR_BUFFER | GSAI_THRESHOLD );
}
}
......@@ -78,7 +78,7 @@ gscEnableAdcModule( CDS_HARDWARE* pHardware, int card, int dmamode )
{
/// Clear the FIFO and set demand DMA to start after all 32 channels
/// have 1 sample
_adcPtr[ ii ]->IDBC = ( GSAI_CLEAR_BUFFER | GSAI_THRESHOLD );
_adcPtr[ ii ]->IDBC |= ( GSAI_CLEAR_BUFFER | GSAI_THRESHOLD );
// Normal operation is to enable DMA mode.
// Not setting DMA mode is used in some test routines.
if ( dmamode )
......
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