#80359 - Orion - Fri Apr 21, 2006 6:54 pm
Hey.
I've been fiddling around for hours now trying to get this to work, but I can't figure it out.
Any ideas on how I would convert this:
to work using this:
So that I can do DMA3's with AAS without changing every single one in my project?
Thanks
I've been fiddling around for hours now trying to get this to work, but I can't figure it out.
Any ideas on how I would convert this:
Code: |
#define DMACopy(source, dest, WordCount, mode)\
REG_DMA3CNT = 0;\ REG_DMA3SAD = (u32)source;\ REG_DMA3DAD = (u32)dest;\ REG_DMA3CNT_L = (WordCount >> 1);\ REG_DMA3CNT_H = mode; |
to work using this:
Code: |
#define DMACopy(source, dest, WordCount, mode) AAS_DoDMA3( source, dest, (WordCount >> 1) | mode ); |
So that I can do DMA3's with AAS without changing every single one in my project?
Thanks