]> www.fi.muni.cz Git - tinyboard.git/commit
pwm.c: modified for ATtiny45/step-up
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 25 Apr 2013 14:24:31 +0000 (16:24 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 25 Apr 2013 14:24:31 +0000 (16:24 +0200)
commit899ce95294ad696dbd04e2f5722fbbc00f9dec2e
tree1f443d3f7cddc0dd2ec9916f87951added86d9a4
parent280768d8d70943db6504131d49d2a916f6ec3acd
pwm.c: modified for ATtiny45/step-up

So far two PWM channels OC1A/OC1B with sub-LSB resolution possible
(but unused yet) using timer IRQ.

TODO: get rid of OCR1C register and let it count to 255.
projects/step-up/lights.h
projects/step-up/pwm.c