mirror of
https://github.com/apache/nuttx.git
synced 2026-08-14 17:03:29 +00:00
SAMA5 ADC: Correct setup of time compare registers
This commit is contained in:
parent
376652f293
commit
509f08daa9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue