* device/include/pic/pic14regs.h: reverted accidental wipe of the file
authortecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 20 Jan 2007 15:02:43 +0000 (15:02 +0000)
committertecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 20 Jan 2007 15:02:43 +0000 (15:02 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4586 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
device/include/pic/pic14regs.h

index ae6d8ac022bfc2bc1e10312f35e1b82c90bd1730..f4c69a87bc5e029af6c675f7afdfc1b260b84ede 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-20 Raphael Neider <rneider AT web.de>
+
+       * device/include/pic/pic14regs.h: reverted accidental wipe of the file
+
 2007-01-20 Raphael Neider <rneider AT web.de>
 
        * device/lib/pic/libdev/devices.txt: device list for mkall.sh
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..9cee5b2e86a799e2ced6b3cc71896d3108d27591 100644 (file)
@@ -0,0 +1,22 @@
+#ifndef __DEVICE_INCLUDE_PIC14REGS_H__
+#define __DEVICE_INCLUDE_PIC14REGS_H__ 1
+
+#if defined(SDCC_PROCESSOR)
+  #ifndef _CONCAT
+  #undef  _CONCAT2
+  #define _CONCAT(a,b) _CONCAT2(a,b)
+  #define _CONCAT2(a,b)        a ## b
+  #endif
+
+  /* May not paste proc ## .h as pic16f877.h is no valid
+   * preprocessor token. So this is a bit fragile... */
+  #define INC_PIC(proc)        <_CONCAT(pic,proc).h>
+
+  #include INC_PIC(SDCC_PROCESSOR)
+#else
+  /* SDCC_PROCESSOR undefined */
+  #warning SDCC_PROCESSOR undefined, no processor-specific header included.
+#endif
+
+#endif /* __DEVICE_INCLUDE_PIC14REGS_H__ */
+