Imported Upstream version 2.9.0
[debian/cc1111] / device / include / pic / pic14regs.h
1 #ifndef __DEVICE_INCLUDE_PIC14REGS_H__
2 #define __DEVICE_INCLUDE_PIC14REGS_H__ 1
3
4 #if defined(SDCC_PROCESSOR)
5   #ifndef _CONCAT
6   #undef  _CONCAT2
7   #define _CONCAT(a,b)  _CONCAT2(a,b)
8   #define _CONCAT2(a,b) a ## b
9   #endif
10
11   /* May not paste proc ## .h as pic16f877.h is no valid
12    * preprocessor token. So this is a bit fragile... */
13   #define INC_PIC(proc) <_CONCAT(pic,proc).h>
14
15   #include INC_PIC(SDCC_PROCESSOR)
16 #else
17   /* SDCC_PROCESSOR undefined */
18   #warning SDCC_PROCESSOR undefined, no processor-specific header included.
19 #endif
20
21 #endif /* __DEVICE_INCLUDE_PIC14REGS_H__ */
22