include.h
来自「AVR写的433M无线通信原代码.」· C头文件 代码 · 共 61 行
H
61 行
/*******************************************************************************************************
* 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: 珠海元井电子 www.vital-well.com * *
*
*******************************************************************************************************/
#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/iom8.h>
#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"
#include "uart.h"
//#define _DEBUG_
//定义 发射模式
#define _DEV_TX_
//定义 接收模式
//#define _DEV_RX_
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?