* as/link/lkar.h: sgetl and sputl are independent of endianness
[fw/sdcc] / device / include / pic / pic14regs.h
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__ */
+