*\r
* Copyright (c) 2009-2013 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.11 2014/07/01 07:50:33 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
# include <timers.h> // timer lib\r
# include <pwm.h> // pwm lib\r