include.h

来自「基于CC1100和ATMEGA128开发的无线机器人控制程序」· C头文件 代码 · 共 50 行

H
50
字号
/*******************************************************************************************************
 * This file shall be included in all source files (*.c). No other library inclusions are required.    *
 *******************************************************************************************************
 * Compiler: AVR-GCC                                                                                   *
 * Target platform: CCXX00 + ATMEGA 128    																													*
  * Author:        Wang Chaoyan IBSS of NUAA                                        *                              *
																													                                              *
 *******************************************************************************************************/


#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"


#endif

⌨️ 快捷键说明

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