summaryrefslogtreecommitdiff
path: root/irmpsystem.h
diff options
context:
space:
mode:
authorukw2014-07-01 07:54:14 +0000
committerukw2014-07-01 07:54:14 +0000
commit4a7dc859e27ad629f32a77237b6e6af4fb714603 (patch)
tree630268b039b0c9fb3aad4ad73df83138519bfb5e /irmpsystem.h
parent535c925a846b0d459ec56c3f9065e01cf5976669 (diff)
downloadirmp-4a7dc859e27ad629f32a77237b6e6af4fb714603.zip
Version 2.5.5: IRMP port to PIC XC8 compiler
git-svn-id: svn://mikrocontroller.net/irmp@131 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
Diffstat (limited to 'irmpsystem.h')
-rw-r--r--irmpsystem.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/irmpsystem.h b/irmpsystem.h
index b8a9b9a..d4e5b13 100644
--- a/irmpsystem.h
+++ b/irmpsystem.h
@@ -3,7 +3,7 @@
*
* Copyright (c) 2009-2013 Frank Meyer - frank(at)fli4l.de
*
- * $Id: irmpsystem.h,v 1.10 2014/02/19 12:57:36 fm Exp $
+ * $Id: irmpsystem.h,v 1.11 2014/07/01 07:50:33 fm Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -21,6 +21,9 @@
#if defined(__18CXX) // Microchip PIC C18 compiler
# define PIC_C18
+#elif defined(__XC8) // PIC XC8 compiler
+# include <xc.h>
+# define PIC_C18
#elif defined(__PCM__) || defined(__PCB__) || defined(__PCH__) // CCS PIC compiler
# define PIC_CCS
#elif defined(STM32L1XX_MD) || defined(STM32L1XX_MDP) || defined(STM32L1XX_HD) // ARM STM32
@@ -102,7 +105,7 @@ typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
#endif
-#if defined (PIC_C18)
+#if defined (PIC_C18) // PIC C18 or XC8 compiler
# include <p18cxxx.h> // main PIC18 h file
# include <timers.h> // timer lib
# include <pwm.h> // pwm lib