Re: [libopenstm32-devel] [PATCH] Updated STM32 memory map, fixed USB_OTG_FS_BASE
Status: Inactive
Brought to you by:
uh1763
From: Uwe H. <uw...@he...> - 2011-01-30 21:47:22
|
On Thu, Jan 27, 2011 at 04:56:44PM +0100, Damjan Marion wrote: > --- > include/libopencm3/stm32/memorymap.h | 14 +++++++++++--- > 1 files changed, 11 insertions(+), 3 deletions(-) > > diff --git a/include/libopencm3/stm32/memorymap.h b/include/libopencm3/stm32/memorymap.h Added, thanks. > /* AHB */ > #define SDIO_BASE (PERIPH_BASE_AHB + 0x00000) > @@ -95,6 +102,7 @@ > /* PERIPH_BASE_AHB + 0xb400 (0x4002 3400 - 0x4002 7FFF): Reserved */ > #define ETHERNET_BASE (PERIPH_BASE_AHB + 0x10000) > /* PERIPH_BASE_AHB + 0x18000 (0x4003 0000 - 0x4FFF FFFF): Reserved */ > -#define USB_OTG_FS_BASE (PERIPH_BASE_AHB + 0x10000000) > +#define USB_OTG_FS_BASE (PERIPH_BASE + 0x10000000) Thanks, this was a bug indeed. I changed it to be based on PERIPH_BASE_AHB though for consistency... > +#define FSMC_BASE (PERIPH_BASE + 0x60000000) ...and this one is not based off of AHB it seems, so I made it an extra "section" in memorymap.h. Uwe. -- http://hermann-uwe.de | http://sigrok.org http://randomprojects.org | http://unmaintained-free-software.org |