]> www.fi.muni.cz Git - bike-lights.git/commit
pwm.c: PLL clock enabling code
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 6 Dec 2012 20:34:00 +0000 (21:34 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 6 Dec 2012 20:34:00 +0000 (21:34 +0100)
commitd38628afb3104c15743afaac8e899b2b009e6074
treecd01e08f8f3a168d03d588c3f12bc4a71ee04fc8
parent647f353f4d8c87c5cf18cae905e9d600cd0e6bcb
pwm.c: PLL clock enabling code

- factored out from init_pwm() in order to be able to suspend PLL also
during normal operation
- use _delay_us(100) instead of _delay_ms(1) as recommended by datasheet
- disable PLL in susp_pwm()
firmware/pwm.c