*\r
* Copyright (c) 2010-2013 Frank Meyer - frank(at)fli4l.de\r
*\r
- * $Id: irsnd.h,v 1.16 2013/03/12 12:49:59 fm Exp $\r
+ * $Id: irsnd.h,v 1.17 2014/02/19 12:57:36 fm Exp $\r
*\r
* ATMEGA88 @ 8 MHz\r
*\r
// Do not change lines below until you have a different HW. Example is for 18F2550/18F4550\r
// setup macro for PWM used PWM module\r
# if IRSND_OCx == IRSND_PIC_CCP2 \r
+# define PWMon() TMR2=0,CCP2CON |=0b1100\r
+# define PWMoff() CCP2CON &=(~0b1100)\r
# define IRSND_PIN TRISCbits.TRISC1 // RC1 = PWM2\r
# define SetDCPWM(x) SetDCPWM2(x) \r
# define ClosePWM ClosePWM2\r
# define OpenPWM(x) OpenPWM2(x) \r
# endif\r
# if IRSND_OCx == IRSND_PIC_CCP1 \r
+# define PWMon() TMR2=0,CCP1CON |=0b1100\r
+# define PWMoff() CCP1CON &=(~0b1100)\r
# define IRSND_PIN TRISCbits.TRISC2 // RC2 = PWM1\r
# define SetDCPWM(x) SetDCPWM1(x)\r
# define ClosePWM ClosePWM1\r