]> www.fi.muni.cz Git - bike-lights.git/commit
pwm.c: disable when not needed
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Tue, 28 May 2013 21:07:31 +0000 (23:07 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Tue, 28 May 2013 21:07:31 +0000 (23:07 +0200)
commit09f4c911ed99f5d73f4c005d79cc46d901765a88
treecb28f3fafcc6c8c55b5017ff107763fcfd08281a
parent67fee443a9e9465923ad7e7704eb9000cba49cdd
pwm.c: disable when not needed

Timer/Counter 1 eats much power, especially with PLL clock. So let's
try to disable it when no PWM channel is active.
firmware/lights.h
firmware/pwm.c
firmware/tmr.c