My name is Jeff Moran and I'm a sophmore at WPI here in freezing boston. I been successful in putting the LED demo in CCS 5.5 and currently I have been analying the code to see how it interfaces with the ezdsp5535 usb stick. I have gotten pretty far in understand most of the c code but when it comes to the csl libraries I'm having a problem understanding the code. I have provided and example and I be very appreciated if one of the engineers could tell me where to look to interpret the code if there is some manual it would be great. HERE IS THE CODE:
/* the Field INSert (Token) macro */
#define CSL_FINST(reg, PER_REG_FIELD, TOKEN)
\
CSL_FINS((reg), PER_REG_FIELD, CSL_##PER_REG_FIELD##_##TOKEN)
/* the Field EXTract (Raw) macro */
#define CSL_FEXTR(reg, msb, lsb)
\
(((reg) >> (lsb)) & ((1 << ((msb) - (lsb) + 1)) - 1))
IF anyone can shed some light on this code I be appreciated. Thanks in advance BTW most of this code can be found in the clr.h header
JEFF
