📄 include.h
字号:
#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))
//
#define LED1 0
#define LED2 1
#define LED3 2
#define LED4 3
#define SW1 4
#define SW2 5
#define SW3 6
#define SW4 7
// Dynamic function pointer
typedef void (*VFPTR)(void);
// CLIB
#include <stdlib.h>
#include <string.h>
// MSP430-GCC C/C++ compiler for MSP430 (__MSP430__)
// IAR 3.2 C/C++ compiler for MSP430 (__ICC430__)
#if defined(__ICC430__) || defined(__MSP430__)
#include <msp430x16x.h>
#ifdef __MSP430__
#include <signal.h>
#endif
#ifdef __ICC430__
#pragma diag_suppress=Pa082
#endif
#include "hal_msp430f1611.h"
#include "hal.h"
#endif
// Common include files
#include "hal_cc2420.h"
#include "basic_rf.h"
#include "hh_phy.h"
#include "hh_mac.h"
#include "hh_nwk.h"
//syn
#include "zheng_Init.h"
#include "zheng_clock.h"
#include "zheng_changlocaltime.h"
#include "zheng_xianxinghuigui.h"
#include "zheng_synchronization_init.h"
#include "send_ADCdata_to_coordinator.h"
#include "zheng_ad_init.h"
#include "fasongdingshi.h"
#include "zheng_captureSFDrise.h"
#include "stdio.h "
#include "zheng_get_current_time.h"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -