Add start of platform-specific abstraction files
[avr_cal.git] / src / avrcal.h
1 /*****************************************************************************
2 ** FILE IDENTIFICATION
3 **
4 **   Name:          avrcal.h
5 **   Purpose:       AVR C Compiler Abstraction Layer Common Header File
6 **   Programmer:    Kevin Rosenberg <kevin@rosenberg.net> (AVRFreaks: kmr)
7 **   Date Started:  Dec 2007
8 **
9 **   Copyright (c) 2008 by Kevin Rosenberg. All rights reserved.
10 **
11 ** LICENSE
12 **   See accompaning LICENSE file
13 **
14 ** CHANGES
15 **   See accompaning ChangeLog file
16 ******************************************************************************/
17
18 #ifndef __AVRCAL_H__
19 #define __AVRCAL_H__
20
21 // AVR-GCC C Compiler
22 #if defined(__GNUC__)
23 #include <calgcc.h>
24
25 // IAR C Compiler
26 #elif defined(__ICCAVR__)
27 #include <caliar.h>
28
29 // ImageCraft C Compiler
30 #elif defined(__IMAGECRAFT__)
31 #include <calicc.h>
32
33 // CodeVision AVR C Compiler
34 #elif defined(__CODEVISIONAVR__)
35 #include <calcv.h>
36
37 #else
38 #error Unknown / Unsupported Platform
39 #endif
40
41 #endif
42
43
44
45