📄 include.h
字号:
/*******************************************************************************************************
* *
* ********** *
* ************ *
* *** *** *
* *** +++ *** *
* *** + + *** *
* *** + CHIPCON CC2420 SOFTWARE *
* *** + + *** Master inclusion file *
* *** +++ *** *
* *** *** *
* ************ *
* ********** *
* *
*******************************************************************************************************
* This file shall be included in all source files (*.c). No other library inclusions are required. *
*******************************************************************************************************
* Compiler: AVR-GCC *
* Target platform: CC2420DB, CC2420 + any ATMEGA MCU *
*******************************************************************************************************
* Revision history: *
* $Log: include.h,v $
* Revision 1.5 2004/04/02 12:27:32 oyj
* Added mac_security.h
*
* Revision 1.4 2004/03/30 15:00:26 mbr
* Release for web
*
*
*
*
*******************************************************************************************************/
#ifndef INCLUDE_H
#define INCLUDE_H
//-------------------------------------------------------------------------------------------------------
// Common data types
typedef unsigned char BOOL;
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef unsigned long long QWORD;
typedef unsigned char UINT8;
typedef unsigned short UINT16;
typedef unsigned long UINT32;
typedef unsigned long long UINT64;
typedef signed char INT8;
typedef signed short INT16;
typedef signed long INT32;
typedef signed long long INT64;
// Common values
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef NULL
#define NULL 0
#endif
// 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/signal.h>
#include <string.h>
#ifdef STK501
#include "hal/atmega128/hal_stk501.h"
#endif
#ifdef CC2420DB
#include "hal/atmega128/hal_cc2420db.h"
#endif
// HAL include files
#include "hal/atmega128/hal.h"
#include "hal/hal_cc2420.h"
// BASIC RF include files
#include "basic_rf/basic_rf.h"
//-------------------------------------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -