/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
* irsnd.h\r
*\r
- * Copyright (c) 2010-2015 Frank Meyer - frank(at)fli4l.de\r
+ * Copyright (c) 2010-2016 Frank Meyer - frank(at)fli4l.de\r
*\r
- * $Id: irsnd.h,v 1.23 2015/11/18 08:27:50 fm Exp $\r
+ * $Id: irsnd.h,v 1.26 2017/02/17 09:13:07 fm Exp $\r
*\r
* This program is free software; you can redistribute it and/or modify\r
* it under the terms of the GNU General Public License as published by\r
# if defined(__12F1840)\r
// Do not change lines below unless you have a different HW. This example is for 12F1840\r
// setup macro for PWM used PWM module\r
- \r
+\r
//~ # define PWMon() TMR2=0,IRSND_PIN=1\r
//~ # define PWMoff() CCP1CON &=(~0b1100)\r
//~ # define PWMon() TMR2ON=1\r
//~ # define PWMoff() TMR2ON=0\r
- #if defined(IRSND_DEBUG) \r
+ #if defined(IRSND_DEBUG)\r
#define PWMon() LATA0=1\r
#define PWMoff() LATA0=0\r
#define IRSND_PIN LATA0\r
#else\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
+ # 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 SetDCPWM(x) SetDCPWM2(x)\r
# define ClosePWM ClosePWM2\r
- # define OpenPWM(x) OpenPWM2(x) \r
+ # define OpenPWM(x) OpenPWM2(x)\r
# endif\r
- # if IRSND_OCx == IRSND_PIC_CCP1 \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
# define OpenPWM(x) OpenPWM1(x)\r
- # endif \r
+ # endif\r
# endif\r
# endif // PIC_C18\r
\r