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

📄 include.h

📁 基于CC1100和ATMEGA128开发的无线机器人控制程序
💻 H
字号:
/*******************************************************************************************************
 * This file shall be included in all source files (*.c). No other library inclusions are required.    *
 *******************************************************************************************************
 * Compiler: AVR-GCC                                                                                   *
 * Target platform: CCXX00 + any ATMEGA MCU    																													*
  * Author:    WangChaoyan                                        *                              *
																													                                              *
 *******************************************************************************************************/


#ifndef _INCLUDE_H
#define _INCLUDE_H


#include "common.h"

// Useful stuff
#define BM(n) (1 << (n))
#define BF(x,b,s) (((x) & (b)) >> (s))
#define MIN(n,m) (((n) < (m)) ? (n) : (m))
#define MAX(n,m) (((n) < (m)) ? (m) : (n))
#define ABS(n) ((n < 0) ? -(n) : (n))

// Dynamic function pointer
typedef void (*VFPTR)(void);
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// Standard GCC include files for AVR

#include <avr/io.h>
#include <avr/pgmspace.h>
#include <avr/interrupt.h>
#include <string.h>
#include <avr/wdt.h>
#include <stdlib.h>
#include <stdio.h>

#include <ctype.h>

#include "hal_CCxx00DB.h"
// HAL include files
#include "hal.h"

#include "regssrf04.h"
#include "halsrf04.h"


//#define _DEBUG_


#endif

⌨️ 快捷键说明

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