]> www.fi.muni.cz Git - bike-lights.git/commit
adc: average several measurements
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 21 Nov 2012 17:10:40 +0000 (18:10 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 21 Nov 2012 17:10:40 +0000 (18:10 +0100)
commit35a6047369df5398282c6e1f2ec03976e6af76e4
tree9fa3bb79a013b54321437c85a663234ae3ee21d1
parent87b9093fd54402618c297aaacbfa68bad80302e9
adc: average several measurements

Also do not define the MUX values in the table in order to be able
to set also GSEL and ADMUX5 if needed.

Disable the ADC between the conversions.
firmware/adc.c