SAMA5 ADC: Correct setup of time compare registers

This commit is contained in:
Gregory Nutt 2013-10-27 09:35:30 -06:00
parent 4bbe259082
commit 5c5faa3119

View File

@ -1163,7 +1163,7 @@ static int sam_adc_settimer(struct sam_adc_s *priv, uint32_t frequency,
/* Set up TC_RA and TC_RC */
sam_tc_setregister(priv->tc, TC_REGA, div / 2);
sam_tc_setregister(priv->tc, TC_REGA, div << 1);
sam_tc_setregister(priv->tc, TC_REGC, div);
/* And start the timer */