InitUART_Timer.h
如下:
#include <ioCC2530.h>
#define uint unsigned int
#define uchar unsigned char
#define LED1 P1_0
#define LED2 P1_1
#define LED3 P1_4
typedef unsigned char BYTE;
typedef unsigned char UINT8;
typedef unsigned char INT8U;
typedef unsigned short UINT16;
typedef unsigned short INT16U;
typedef unsigned long UINT32;
typedef unsigned long INT32U;
typedef signed char INT8;
typedef signed short INT16;
typedef signed long INT32;
#define DISABLE_ALL_INTERRUPTS() (IEN0 = IEN1 = IEN2 = 0x00)
void InitClock ( void ) {
CLKCONCMD &= ~0x40;
while ( CLKCONSTA & 0x40 );
CLKCONCMD &= ~0x47;
}
void InitLed ( void ) {
P1DIR |= 0x13;
LED1 =