📄 config.h
字号:
/*
**
****************************************************************************
**
**
** Copyright (c) 2007 - Atmel Corporation
** Proprietary Information
**
** Project : ATMEGA88 + ATA6824 High Temperature H-bridge System
** Module : config.h
** Description : configuration file
**
**
** Version : Date: Author: Comment:
** 1.0 12.02.2007 F.G. Creation
**
**
**
**
**
**
**
** LICENSE -
**
** ATMEL - 2007
** All software programs are provided 'as is' without warranty of any kind:
** Atmel does not state the suitability of the provided materials for any
** purpose. Atmel hereby disclaim all warranties and conditions with regard
** to the provided software, including all implied warranties, fitness for
** a particular purpose, title and non-infringement.In no event will Atmel
** be liable for any indirect or consequential damages or any damages
** whatsoever resulting from the usage of the software program.
****************************************************************************
**
*/
#ifndef _CONFIG_H_
#define _CONFIG_H_
#if defined(__ICCAVR__) // IAR COMPILER USED
#include "ioavr.h" // IAR include file to choose the right CPU include file according the compiler options.
#include "inavr.h"
#if defined (__ATmega88__)
#include "lib_board/High_temp_H-bridge_board.h"
#else
#error "Target MCU not supported!"
#endif
#elif defined(__AVR__) // AVR GCC COMPILER USED
#include <avr/io.h> // AVR GCC include file to choose the right CPU include file according the compiler options.
#include <avr/interrupt.h>
#if defined (__AVR_ATmega88__)
#include "lib_board/High_temp_H-bridge_board.h"
#else
#error "Target MCU not supported!"
#endif
#define __enable_interrupt() sei() // Redefine interrupt macros
#define __disable_interrupt() cli()
#else
#error "Compiler not supported!"
#endif // END OF COMPILER USED
/*_____ D E F I N I T I O N ________________________________________________*/
#define true 1
#define false 0
typedef unsigned char U8;
typedef unsigned int U16 ;
typedef signed int S16;
typedef signed long S32;
typedef unsigned long U32;
typedef unsigned char Bool;
typedef unsigned char Byte;
typedef unsigned int Word;
typedef unsigned long int DWord;
#endif /* CONFIG_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -