4 //The PWM has no loop function. It runs entirely out of the ISR.
10 //s/w "BCM"(<== "Binary Code Modulation") timer setup
11 TCCR0A
|= _BV(WGM00
)|_BV(WGM01
);
14 //FIXME set PWM output DDRs
18 //Called every 256 cpu clks (i.e should not get overly long)
21 Q
|= (pwm_val
[0] & pwm_cycle
);
22 Q
|= (pwm_val
[1] & pwm_cycle
)?2:0;
23 Q
|= (pwm_val
[2] & pwm_cycle
)?4:0;
24 Q
|= (pwm_val
[3] & pwm_cycle
)?8:0;
25 Q
|= (pwm_val
[4] & pwm_cycle
)?16:0;
34 uint8_t pwm_cycle
= 0;
35 uint8_t pwm_val
[PWM_COUNT
];
37 #else//HAS_PWM_SUPPORT
41 #endif//HAS_PWM_SUPPORT