⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 evbconfig.h

📁 zigbee 协议堆栈 stack(简化协议)
💻 H
字号:
/*
  V0.1 Initial Release   10/July/2006  RBR

*/

#ifndef EVBCONFIG_H
#define EVBCONFIG_H

//there is only one LED on the SOC BB board.
//macros taken from Chipcon EVB header file

#define FOSC 32000000    //CPU Frequency

#define LED_OFF 1
#define LED_ON  0

//I could not get LED2, LED4 to work on my CC2430EB
#define LED1          P1_0 //this is LED1 on the board
#define LED2

#define INIT_LED1()   do { LED1 = LED_OFF; IO_DIR_PORT_PIN(1, 0, IO_OUT); P1SEL &= ~0x01;} while (0)
#define INIT_LED2()


#define LED1_ON()  (LED1 = LED_ON)
#define LED2_ON()



#define LED1_OFF()  (LED1 = LED_OFF)
#define LED2_OFF()

#define LED1_STATE() (LED1 == LED_ON)
#define LED2_STATE() (0)

#define SW_CONFIG()\
{\
  do {IO_DIR_PORT_PIN(0, 1, IO_IN); P0SEL &= ~0x02;} while (0);\
}

#define SW1_INPUT_VALUE()          P0_1
#define SW2_INPUT_VALUE()

#endif



⌨️ 快捷键说明

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