global.h

来自「嵌入式系统中的fat32和fat16源代码(完全版)」· C头文件 代码 · 共 41 行

H
41
字号
//*****************************************************************************
//
// Title		: AVRlib project global include
// Authors		: Angelo Bannack, Giordano Bruno Wolaniuk
// File Name	: 'global.h'
// Date			: April 26, 2004
// Version		: 1.00
// Target MCU	: Atmel AVR Series
// Editor Tabs	: 4
//
// NOTE: This code is based on original library "AVRlib project global include"
//       from Pascal Stang.
//
//	     The authors in no way will be responsible for damages that you coul'd be using this code.
//       Use this code at your own risk.
//
//       This code is distributed under the GNU Public License
//       which can be found at http://www.gnu.org/licenses/gpl.txt
//
//*****************************************************************************

#ifndef GLOBAL_H
#define GLOBAL_H


#define FALSE	 0
#define TRUE	-1

// project/system dependent defines

// CPU clock speed
  #define F_CPU       16000000               		// 16MHz processor
//#define F_CPU       14745000               		// 14.745MHz processor
//#define F_CPU        8000000               		// 8MHz processor
//#define F_CPU        7370000               		// 7.37MHz processor
//#define F_CPU        4000000               		// 4MHz processor
//#define F_CPU        3686400               		// 3.69MHz processor
#define CYCLES_PER_US ((F_CPU+500000)/1000000) 		// cpu cycles per microsecond

#endif

⌨️ 快捷键说明

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