#55775 - Wizad - Sun Oct 02, 2005 1:39 am
is there any tutorial explaning clearly how memory adresses work? I have a hard time to understand the concept.
for instance, on this little piece of code;
I don't understand why DMA_TIMING_IMMEDIATE and DMA_16 have the same adresse.
for instance, on this little piece of code;
Code: |
#define REG_DMA3SAD *(volatile unsigned int*)0x40000D4
#define REG_DMA3DAD *(volatile unsigned int*)0x40000D8 #define REG_DMA3CNT *(volatile unsigned int*)0x40000DC #define DMA_ENABLE 0x80000000 #define DMA_TIMING_IMMEDIATE 0x00000000 #define DMA_16 0x00000000 #define DMA_32 0x04000000 #define DMA_32NOW (DMA_ENABLE | DMA_TIMING_IMMEDIATE | DMA_32) #define DMA_16NOW (DMA_ENABLE | DMA_TIMING_IMMEDIATE | DMA_16) |
I don't understand why DMA_TIMING_IMMEDIATE and DMA_16 have the same adresse.