]> www.fi.muni.cz Git - bike-lights.git/commit
adc.c: configurable number of pre-readings
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sun, 17 Mar 2013 16:59:23 +0000 (17:59 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sun, 17 Mar 2013 16:59:23 +0000 (17:59 +0100)
commit4c6ff89995f620aadb6cd8ef9403adac8ef48478
treeef1865be1a75847369d6c802868e838fd3f9aa0d
parentcadcc858f6c65c9fd7a18fb8309f7305ec6adb28
adc.c: configurable number of pre-readings

When there is a supposed ADC noise problem, it is handful to drop
several first readings, and even discharge the ADC capacitor
by reading the single-ended wire connected to zero. This commit
rewrites the ADC handling to allow exactly this, for each ADC input.
firmware/adc.c