/* Interrupt handler for managing the software PWM channels for the LEDs  */
ISR(TIMER0_COMPA_vect, ISR_BLOCK)
/* Interrupt handler for managing the software PWM channels for the LEDs  */
ISR(TIMER0_COMPA_vect, ISR_BLOCK)
{
	uint8_t LEDMask = LEDS_ALL_LEDS;
	if (++SoftPWM_Count == 0b00011111)
	  SoftPWM_Count = 0;
	if (SoftPWM_Count >= SoftPWM_Channel1_Duty)
	  LEDMask &= ~LEDS_LED1;
	if (SoftPWM_Count >= SoftPWM_Channel2_Duty)
	  LEDMask &= ~LEDS_LED2;
	if (SoftPWM_Count >= SoftPWM_Channel3_Duty)
	  LEDMask &= ~LEDS_LED3;
	LEDs_SetAllLEDs(LEDMask);
}