]> www.fi.muni.cz Git - bike-lights.git/commit
adc: measure gain stage offset _slowly_
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 30 Nov 2012 01:12:05 +0000 (02:12 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 30 Nov 2012 01:12:05 +0000 (02:12 +0100)
commit295d6d70b233e295c5080c998b9f54306c1170cf
tree130137f40c5f2432b6da23719e87a32374b1948b
parent14fcddcd93033da14a3bea0439f2c17872713d88
adc: measure gain stage offset _slowly_

use running sum of 1<<6 measurements, and do only one measurement
per loop in order to not disturb other measurements. Also, do not log
timer overruns for ADC, as we do most of the processing in ADC IRQs now.
firmware/adc.c