| Commit message (Collapse) | Author | Age |
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Don't require the application to provide AO_NUM_ADC when AO_ADC_NUM is
computed automatically.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Unused varibles, functions and parameters.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Burst mode doesn't stop after one round of conversions, so we end up
getting incorrect values in whatever the last conversion register is.
Just use single conversions and take an interrupt per channel.
Also, slow down the ADC so that our values are more stable -- just
need to make sure we get the whole conversion sequence done 100 times
a second.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Now that the source of the Vcc noise has been identified, remove the
unnecessary ADC filtering.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
They're amazingly noisy on EasyMini, so just filter them as the only
thing we use them for is battery and pyro numbers.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
They're still very unstable (bouncing around a lot), but at least they
seem to report useful stuff now.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
Was just stepping through register space arbitrarily, which would have
worked for EasyMini, but might have failed later if the ADC pin usage
wasn't consecutive.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
Uses burst mode to get the whole set of values in one interrupt
Signed-off-by: Keith Packard <keithp@keithp.com>
|