Error in Quickstart guide for ADC driver documentation

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Could someone sanity check me here please?


The documentation in question:


Under Workflow, item 2:

Wait for the conversion over:


The EOC bit for each channel gets set when the conversion is complete, not cleared.  Shouldn't this be something like:

while (!(adc_get_interrupt_status(ADC) & (1 << ADC_CHANNEL_1)));


If I'm right, is it worth reporting these? i.e. do they actually get fixed?  


Obviously there's better ways to wait for a conversion than a hard loop, but it's easy for a quick ADC input test.