Add start of platform-specific abstraction files
[avr_cal.git] / src / avrcal.h
diff --git a/src/avrcal.h b/src/avrcal.h
new file mode 100644 (file)
index 0000000..8f802a2
--- /dev/null
@@ -0,0 +1,45 @@
+/*****************************************************************************
+** FILE IDENTIFICATION
+**
+**   Name:          avrcal.h
+**   Purpose:       AVR C Compiler Abstraction Layer Common Header File
+**   Programmer:    Kevin Rosenberg <kevin@rosenberg.net> (AVRFreaks: kmr)
+**   Date Started:  Dec 2007
+**
+**   Copyright (c) 2008 by Kevin Rosenberg. All rights reserved.
+**
+** LICENSE
+**   See accompaning LICENSE file
+**
+** CHANGES
+**   See accompaning ChangeLog file
+******************************************************************************/
+
+#ifndef __AVRCAL_H__
+#define __AVRCAL_H__
+
+// AVR-GCC C Compiler
+#if defined(__GNUC__)
+#include <calgcc.h>
+
+// IAR C Compiler
+#elif defined(__ICCAVR__)
+#include <caliar.h>
+
+// ImageCraft C Compiler
+#elif defined(__IMAGECRAFT__)
+#include <calicc.h>
+
+// CodeVision AVR C Compiler
+#elif defined(__CODEVISIONAVR__)
+#include <calcv.h>
+
+#else
+#error Unknown / Unsupported Platform
+#endif
+
+#endif
+
+
+
+