⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 global.h

📁 AVR - using ds1631 throug i2c.
💻 H
字号:
/*! \file global.h \brief AVRlib project global include. */
//*****************************************************************************
//
// File Name    : 'global.h'
// Title        : AVRlib project global include 
// Author       : Pascal Stang - Copyright (C) 2001-2002
// Created      : 7/12/2001
// Revised      : 9/30/2002
// Version      : 1.1
// Target MCU   : Atmel AVR series
// Editor Tabs  : 4
//
//  Description : This include file is designed to contain items useful to all
//                  code files and projects.
//
// 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

// global AVRLIB defines
#include <../avrlib/avrlibdefs.h>
// global AVRLIB types definitions
#include "../avrlib/avrlibtypes.h"

// project/system dependent defines

// CPU clock speed
//#define F_CPU        16000000                     // 16MHz processor
//#define F_CPU        14745000                     // 14.745MHz processor
#define F_CPU        4000000                      // 8MHz processor
//#define F_CPU        7372800                    // 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -