main.h

来自「正交信号源的单片机和cpld源码」· C头文件 代码 · 共 60 行

H
60
字号
/*------------------------------------------*-

   Main.H (v1.00)

  --------------------------------------------
   
   'Project Header' 

   COPYRIGHT
   ---------

   This code is associated with the electronic Clock

   This code is copyright by .

-*-------------------------------------------*/
#ifndef _MAIN_H
#define _MAIN_H

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

// Must include the appropriate microcontroller 
//header file here
#include <reg52.h>
#include<absacc.h>

// Oscillator / resonator frequency (in Hz) 
//e.g. (11059200UL)
//#define OSC_FREQ (12000000UL)


// Number of oscillations per instruction (12, etc)
//#define OSC_PER_INST (12)

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

// Type define   
typedef unsigned char uchar; 
typedef unsigned int uint; 
typedef unsigned long ulong; 

// Interrupts  
#define INT_T0_Overflow 1
#define INT_T1_Overflow 3
#define INT_T2_Overflow 5
//#define ture  1
//#define false 0



#endif

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

⌨️ 快捷键说明

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