i am working with a cc2420_const.h file but when i want to compile doesnt
work correctly 

In cc2420_const.h the variable enum is declare at this way.

enum cc2420_register {
  CC2420_SNOP           = 0x00,
  CC2420_SXOSCON        = 0x01,
  CC2420_STXCAL         = 0x02,
  CC2420_SRXON          = 0x03,
}

and at cc2420.c useit as

  strobe(CC2420_SXOSCON);  BUT AFTER THIS LINE DONT WORK THE VARIABLES ENUM
+++++++++++++++++++++++++++++++++++++
  /* Turn on/off automatic packet acknowledgment and address decoding. */
  reg = getreg(CC2420_MDMCTRL0);
#if CC2420_CONF_AUTOACK
  reg |= AUTOACK | ADR_DECODE;
#else
  reg &= ~(AUTOACK | ADR_DECODE);
#endif /* CC2420_CONF_AUTOACK */
  setreg(CC2420_MDMCTRL0, reg);

i am using msp430xF261&

what is wrong ?

thnx for your help
-- 
View this message in context: 
http://old.nabble.com/problems-with-enum-variables-tp26658500p26658500.html
Sent from the MSP430 gcc - Users mailing list archive at Nabble.com.


Reply via email to