jsolarski-backup 22 Posted October 22, 2012 Share Posted October 22, 2012 I am having errors compiling some USB code on mspgcc, the code that I am having issues with is #ifdef __REGISTER_MODEL__ /* for IAR */ # if __REGISTER_MODEL__ == __REGISTER_MODEL_REG20__ # define __DMA_ACCESS_REG__ (void __data20 *) # else # define __DMA_ACCESS_REG__ (unsigned short) # endif #else /* for CCS */ # define __DMA_ACCESS_REG__ (__SFR_FARPTR)(unsigned long) #endif It affects how DMA0DA = __DMA_ACCESS_REG__ dest; //set destination for DMAx DMA0SA = __DMA_ACCESS_REG__ source; //set source for DMAx is there a suitable replacement for gcc that I can use? no amount of googling has helped. All I know is that SFR__FARPTR is a builtin but not sure what it does, or how it affects the code. If need be I can post the errors from compiling later today Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.