From 96d38082954b27937548beb827a4038f9e7c8a55 Mon Sep 17 00:00:00 2001 From: tecodev Date: Sat, 20 Jan 2007 15:02:43 +0000 Subject: [PATCH] * device/include/pic/pic14regs.h: reverted accidental wipe of the file git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4586 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++++ device/include/pic/pic14regs.h | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/ChangeLog b/ChangeLog index ae6d8ac0..f4c69a87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-01-20 Raphael Neider + + * device/include/pic/pic14regs.h: reverted accidental wipe of the file + 2007-01-20 Raphael Neider * device/lib/pic/libdev/devices.txt: device list for mkall.sh diff --git a/device/include/pic/pic14regs.h b/device/include/pic/pic14regs.h index e69de29b..9cee5b2e 100644 --- a/device/include/pic/pic14regs.h +++ b/device/include/pic/pic14regs.h @@ -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__ */ + -- 2.30.2