Question
DMA Peripheral Base Address
Posted on December 05, 2013 at 07:46
Hi ,
I am new to Stm32 . While browsing through the examples i noticed something that i dont understand for DMA . In the DMA-UART example,// In the initialzation code
DMA_InitStructure.DMA_PeripheralBaseAddr = USARTy_DR_Base;
// In the header file
#define USARTy_DR_Base 0x40004404
From the datasheet , UART2 is at 0x4000 4400 - 0x4000 47FF.
Why does the header file defines it at 0x 4000 4404 ?
Thanks