mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
SAMA5 ADC: Correct setup of time compare registers
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user