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

📄 ti_cc_hardware_board.h

📁 8051f340实现cc1100软件SPI的正常数据收发
💻 H
字号:
//----------------------------------------------------------------------------
//  Description:  This file contains definitions specific to the hardware board.
//  Specifically, the definitions include hardware connections with the
//  CCxxxx connector port, LEDs, and switches.
//
//  MSP430/CC1100-2500 Interface Code Library v1.0
//
//  K. Quiring
//  Texas Instruments, Inc.
//  July 2006
//  IAR Embedded Workbench v3.41
//----------------------------------------------------------------------------


#include "TI_CC_msp430.h"


#define TI_CC_LED_PxOUT         P2
#define TI_CC_LED_PxDIR         P2MDOUT
#define TI_CC_LED1              0x40
//#define TI_CC_LED2              BIT2
//#define TI_CC_LED3              0x04
//#define TI_CC_LED4              0x08

//#define TI_CC_TXE_PxOUT         P2OUT
//#define TI_CC_TXE_PxDIR         P2DIR
//#define TI_CC_TXE_PIN           BIT3

//#define TI_CC_RXE_PxOUT         P2OUT
//#define TI_CC_RXE_PxDIR         P2DIR
//#define TI_CC_RXE_PIN           BIT4

/*#define TI_CC_SW_PxIN           P1IN
#define TI_CC_SW_PxIE           P1IE
#define TI_CC_SW_PxIES          P1IES
#define TI_CC_SW_PxIFG          P1IFG
#define TI_CC_SW1               0x10
#define TI_CC_SW2               0x20
#define TI_CC_SW3               0x40
#define TI_CC_SW4               0x80*/

//msp430fg4619用

#define TI_CC_GDO0_PxOUT        P2
#define TI_CC_GDO0_PxIN         P2
#define TI_CC_GDO0_PxDIR        P2MDOUT
//#define TI_CC_GDO0_PxIE         P1IE
//#define TI_CC_GDO0_PxIES        P1IES
//#define TI_CC_GDO0_PxIFG        P1IFG
#define TI_CC_GDO0_PIN          0X08
/*
//msp430fg2274用
#define TI_CC_GDO0_PxOUT        P2OUT
#define TI_CC_GDO0_PxIN         P2IN
#define TI_CC_GDO0_PxREN        P2REN
#define TI_CC_GDO0_PxSEL        P2SEL
#define TI_CC_GDO0_PxDIR        P2DIR
#define TI_CC_GDO0_PxIE         P2IE
#define TI_CC_GDO0_PxIES        P2IES
#define TI_CC_GDO0_PxIFG        P2IFG
#define TI_CC_GDO0_PIN          BIT0
*/

/*#define TI_CC_GDO1_PxOUT        P3OUT
#define TI_CC_GDO1_PxIN         P3IN
#define TI_CC_GDO1_PxDIR        P3DIR
#define TI_CC_GDO1_PIN          0x04

#define TI_CC_GDO2_PxOUT        P1OUT
#define TI_CC_GDO2_PxIN         P1IN
#define TI_CC_GDO2_REN          P1REN
#define TI_CC_GDO2_PxDIR        P1DIR
#define TI_CC_GDO2_PIN          BIT4*/
//#define TI_CC_GDO2_REN          0X80

//mspfg4619 use
#define TI_CC_CSn_PxOUT         P0
#define TI_CC_CSn_PxDIR         P0MDOUT
#define TI_CC_CSn_PIN           0x04
/*
//mspf2274 use
#define TI_CC_CSn_PxOUT         P3OUT
#define TI_CC_CSn_PxDIR         P3DIR
#define TI_CC_CSn_PxREN         P3REN
#define TI_CC_CSn_PIN           0x01
*/
//----------------------------------------------------------------------------
// Select which port will be used for interface to CCxxxx
//----------------------------------------------------------------------------
#define TI_CC_RF_SER_INTF      TI_CC_SER_INTF_BITBANG //TI_CC_SER_INTF_USART1  // Interface to CCxxxx

⌨️ 快捷键说明

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