main.h

来自「ks0108 avr单片机1284显示」· C头文件 代码 · 共 71 行

H
71
字号
/*----------------------------------------------------------------------------*-
   
   Project Name    :  KS0108_12864LCD_M16  
   Compiler        :  ICCAVR 
   Compiler Ver.   :  7.14B 
   Created Date    :  2008.03.01
   Created By      :  HOCHIEN
   
   Microcontroller :  ATmega16
   System Clock    :  1.0000MHz Internal RC

  ---------------------------------------------------------------------------- 
   COPYRIGHT 
   ---------	 
   
   Header Name   :  Main.H (v1.00)
   Description   :  Project header files. See "Main.C" for details	
   
   * * * This program is from : www.ICEworksop.com * * *  

-*----------------------------------------------------------------------------*/

#ifndef _MAIN_H
#define _MAIN_H

//----------------------------------------------------------------------------
// WILL NEED TO EDIT THIS SECTION FOR EVERY PROJECT
//----------------------------------------------------------------------------

// Must include the appropriate microcontroller header file here
#include <iom16v.h>
#include <macros.h>

// Include oscillator / chip details here
// (essential if generic delays / timeouts are used)
// Oscillator / resonator frequency (in Hz) e.g. (11059200UL)
#define OSC_FREQ (1000000UL)

// Number of oscillations per instruction (1.etc)
#define OSC_PER_INST (1)

//----------------------------------------------------------------------------
// SHOULD NOT NEED TO EDIT THE SECTIONS BELOW
//----------------------------------------------------------------------------

// Typedefs
typedef  unsigned  char        uInt8;  	
typedef  signed    char        Int8;     		
typedef  unsigned  short       uInt16;    	
typedef  signed    short       Int16;  		
typedef  unsigned  long        uInt32; 
typedef  signed    long        Int32;  
typedef  signed    long  long  Int64;   
typedef  unsigned  long  long  uInt64;  		
typedef  float                 fP32;       
typedef  double                fP64;

// Misc #defines
#ifndef TRUE
#define FALSE 0
#define TRUE (!FALSE)
#endif

#define RETURN_NORMAL (uInt8) 0
#define RETURN_ERROR  (uInt8) 1

#endif

/*----------------------------------------------------------------------------*-
  ---- END OF FILE -----------------------------------------------------------
-*----------------------------------------------------------------------------*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?