config.h

Go to the documentation of this file.
00001 /*
00002 **
00003 ****************************************************************************
00004 **
00005 **
00006 **             Copyright (c) 2007 - Atmel Corporation
00007 **             Proprietary Information
00008 **
00009 ** Project     : ATMEGA88 + ATA6824 High Temperature H-bridge System
00010 ** Module      : config.h
00011 ** Description : configuration file
00012 **
00013 **
00014 ** Version :     Date:         Author:      Comment:
00015 **    1.0        12.02.2007    F.G.          Creation 
00016 **
00017 **
00018 **
00019 **
00020 **
00021 **
00022 **
00023 ** LICENSE -
00024 **
00025 ** ATMEL - 2007
00026 ** All software programs are provided 'as is' without warranty of any kind:
00027 ** Atmel does not state the suitability of the provided materials for any
00028 ** purpose. Atmel hereby disclaim all warranties and conditions with regard
00029 ** to the provided software, including all implied warranties, fitness for
00030 ** a particular purpose, title and non-infringement.In no event will Atmel
00031 ** be liable for any indirect or consequential damages or any damages
00032 ** whatsoever resulting from the usage of the software program.
00033 ****************************************************************************
00034 **
00035 */
00036 
00037 #ifndef _CONFIG_H_
00038 #define _CONFIG_H_
00039 
00040 
00041 #if defined(__ICCAVR__) // IAR COMPILER USED
00042 
00043   #include "ioavr.h" // IAR include file to choose the right CPU include file according the compiler options.
00044   #include "inavr.h"
00045 
00046   #if defined (__ATmega88__)
00047     #include "lib_board/High_temp_H-bridge_board.h"
00048   #else
00049     #error "Target MCU not supported!"
00050   #endif
00051 
00052 #elif defined(__AVR__) // AVR GCC COMPILER USED
00053 
00054   #include <avr/io.h> // AVR GCC include file to choose the right CPU include file according the compiler options.
00055   #include <avr/interrupt.h>
00056 
00057   #if defined (__AVR_ATmega88__)
00058     #include "lib_board/High_temp_H-bridge_board.h"
00059   #else
00060     #error "Target MCU not supported!"
00061   #endif
00062 
00063   #define __enable_interrupt()  sei()   // Redefine interrupt macros
00064   #define __disable_interrupt() cli()
00065 #else
00066   #error "Compiler not supported!"
00067 #endif // END OF COMPILER USED
00068 
00069 /*_____ D E F I N I T I O N ________________________________________________*/
00070 #define true 1
00071 #define false 0
00072 
00073 typedef unsigned char       U8;
00074 typedef unsigned int        U16 ;
00075 typedef signed int          S16;
00076 typedef signed long         S32;
00077 typedef unsigned long       U32;
00078 typedef unsigned char       Bool;
00079 typedef unsigned char       Byte;
00080 typedef unsigned int        Word;
00081 typedef unsigned long int   DWord;
00082 
00083 #endif  /* CONFIG_H */
00084 
00085 

Generated on Wed Mar 14 10:53:31 2007 for Mega88_&_ATA6824_High_temperature_H-Bridge_system by  doxygen 1.4.7