This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2520: Help needed Urgently

Part Number: CC2520

Hi everyone, i am using cc2520 examples as mentioned in the TI webpage,in one of the files especially assy_ccmsp2618_cc2520em.h and assy_ccmsp2618_cc2520em.c i am having two errors related to Macros.There are two types of errors i am getting one it says MCU_IO_GET and MCU_IO_SET is defined implicity and when i am trying to solve the error by defining the macros it says too many arguments in invokating the macros.please kindly help me....my whole project is stucked because of this two errors.......

*/
#include <msp430x26x.h>
#include <hal_msp430.h>
#include <hal_digio.h>

/***********************************************************************************
* MACROS
*/

// MCU Pin Access
#ifndef MCU_PIN_DIR_OUT
#define MCU_PIN_DIR_OUT(port,bit) st( P##port##DIR |= BV(bit); )
#endif
#ifndef MCU_PIN_DIR_IN
#define MCU_PIN_DIR_IN(port,bit) st( P##port##DIR &= ~BV(bit); )
#endif

// CC2520 I/O Definitions
// Basic I/O pin setup
#define CC2520_BASIC_IO_DIR_INIT() st( MCU_PIN_DIR_OUT(5,7); MCU_PIN_DIR_OUT(1,0); )

// MCU port control for SPI interface
#define CC2520_DISABLE_SPI_FUNC() st( P5SEL &= ~(BV(1) | BV(2) | BV(3)); )
#define CC2520_ENABLE_SPI_FUNC() st( P5SEL |= BV(1) | BV(2) | BV(3); )

..........

......

/ Outputs: Power and reset control
#define CC2520_RESET_OPIN(v) MCU_IO_SET(5,7,v)
#define CC2520_VREG_EN_OPIN(v) MCU_IO_SET(1,0,v)

.....

// Outputs: SPI interface
#define CC2520_CSN_OPIN(v) MCU_IO_SET(5,0,v)
#define CC2520_SCLK_OPIN(v) MCU_IO_SET(5,3,v)
#define CC2520_MOSI_OPIN(v) MCU_IO_SET(5,1,v)

/ Inputs: SPI interface
#define CC2520_MISO_IPIN MCU_IO_GET(5,2)
#define CC2520_MISO_OPIN(v) MCU_IO_SET(5,2,v) // For use in LPM
#define CC2520_MISO_DIR_IN() MCU_PIN_DIR_OUT(5,2)
#define CC2520_MISO_DIR_OUT() MCU_PIN_DIR_IN(5,2)......