Skip to content
Snippets Groups Projects
Commit af7e34fc authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

ADC: only read channels that are actually being used

on the APM2 we usually use none of the ADC channels, although we may
use the airspeed sensor. This change means we detect which channels
are being read, and only do the SPI transfers for those ones. That
saves us about 100usec per timer interrupt (ie. about 10% of our CPU)
parent e1e9002f
Loading
Loading
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