/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
* irmpsystem.h - system specific includes and defines\r
*\r
- * Copyright (c) 2009-2013 Frank Meyer - frank(at)fli4l.de\r
+ * Copyright (c) 2009-2014 Frank Meyer - frank(at)fli4l.de\r
*\r
- * $Id: irmpsystem.h,v 1.10 2014/02/19 12:57:36 fm Exp $\r
+ * $Id: irmpsystem.h,v 1.13 2014/07/21 08:58:58 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
\r
#if defined(__18CXX) // Microchip PIC C18 compiler\r
# define PIC_C18\r
+#elif defined(__XC8) // PIC XC8 compiler\r
+# include <xc.h>\r
+# define PIC_C18\r
#elif defined(__PCM__) || defined(__PCB__) || defined(__PCH__) // CCS PIC compiler\r
# define PIC_CCS\r
#elif defined(STM32L1XX_MD) || defined(STM32L1XX_MDP) || defined(STM32L1XX_HD) // ARM STM32\r
typedef unsigned short uint16_t;\r
#endif\r
\r
-#if defined (PIC_C18)\r
+#if defined (PIC_C18) // PIC C18 or XC8 compiler\r
# include <p18cxxx.h> // main PIC18 h file\r
+#ifndef __XC8\r
# include <timers.h> // timer lib\r
# include <pwm.h> // pwm lib\r
+#endif\r
# define IRSND_PIC_CCP1 1 // PIC C18 RC2 = PWM1 module\r
# define IRSND_PIC_CCP2 2 // PIC C18 RC1 = PWM2 module\r
#endif\r