MG32F157 Standard Peripherals Firmware Library
Macros
Peripheral_memory_map

Macros

#define FLASH_BASE   ((uint32_t)0x08000000)
 
#define SRAM_BASE   ((uint32_t)0x20000000)
 
#define PERIPH_BASE   ((uint32_t)0x40000000)
 
#define SRAM_BB_BASE   ((uint32_t)0x22000000)
 
#define PERIPH_BB_BASE   ((uint32_t)0x42000000)
 
#define APB1PERIPH_BASE   PERIPH_BASE
 
#define APB2PERIPH_BASE   (PERIPH_BASE + 0x10000)
 
#define AHBPERIPH_BASE   (PERIPH_BASE + 0x20000)
 
#define TIM2_BASE   (APB1PERIPH_BASE + 0x0000)
 
#define TIM3_BASE   (APB1PERIPH_BASE + 0x0400)
 
#define TIM4_BASE   (APB1PERIPH_BASE + 0x0800)
 
#define TIM5_BASE   (APB1PERIPH_BASE + 0x0C00)
 
#define TIM6_BASE   (APB1PERIPH_BASE + 0x1000)
 
#define TIM7_BASE   (APB1PERIPH_BASE + 0x1400)
 
#define RTC_BASE   (APB1PERIPH_BASE + 0x2800)
 
#define WWDG_BASE   (APB1PERIPH_BASE + 0x2C00)
 
#define IWDG_BASE   (APB1PERIPH_BASE + 0x3000)
 
#define SPI2_BASE   (APB1PERIPH_BASE + 0x3800)
 
#define SPI3_BASE   (APB1PERIPH_BASE + 0x3C00)
 
#define USART2_BASE   (APB1PERIPH_BASE + 0x4400)
 
#define USART3_BASE   (APB1PERIPH_BASE + 0x4800)
 
#define UART4_BASE   (APB1PERIPH_BASE + 0x4C00)
 
#define UART5_BASE   (APB1PERIPH_BASE + 0x5000)
 
#define I2C1_BASE   (APB1PERIPH_BASE + 0x5400)
 
#define I2C2_BASE   (APB1PERIPH_BASE + 0x5800)
 
#define CAN1_BASE   (APB1PERIPH_BASE + 0x6400)
 
#define BKP_BASE   (APB1PERIPH_BASE + 0x6C00)
 
#define PWR_BASE   (APB1PERIPH_BASE + 0x7000)
 
#define DAC_BASE   (APB1PERIPH_BASE + 0x7400)
 
#define AFIO_BASE   (APB2PERIPH_BASE + 0x0000)
 
#define OPA1_BASE   (APB2PERIPH_BASE + 0x0200)
 
#define OPA2_BASE   (APB2PERIPH_BASE + 0x0280)
 
#define OPA3_BASE   (APB2PERIPH_BASE + 0x0300)
 
#define EXTI_BASE   (APB2PERIPH_BASE + 0x0400)
 
#define GPIOA_BASE   (APB2PERIPH_BASE + 0x0800)
 
#define GPIOB_BASE   (APB2PERIPH_BASE + 0x0C00)
 
#define GPIOC_BASE   (APB2PERIPH_BASE + 0x1000)
 
#define GPIOD_BASE   (APB2PERIPH_BASE + 0x1400)
 
#define GPIOE_BASE   (APB2PERIPH_BASE + 0x1800)
 
#define ADC1_BASE   (APB2PERIPH_BASE + 0x2400)
 
#define ADC2_BASE   (APB2PERIPH_BASE + 0x2800)
 
#define TIM1_BASE   (APB2PERIPH_BASE + 0x2C00)
 
#define SPI1_BASE   (APB2PERIPH_BASE + 0x3000)
 
#define TIM8_BASE   (APB2PERIPH_BASE + 0x3400)
 
#define USART1_BASE   (APB2PERIPH_BASE + 0x3800)
 
#define ADC3_BASE   (APB2PERIPH_BASE + 0x3C00)
 
#define QUADSPI_BASE   (APB2PERIPH_BASE + 0x4000)
 
#define USB_BASE   (PERIPH_BASE + 0x5C00)
 
#define SDIO_BASE   (PERIPH_BASE + 0x18000)
 
#define DMAC1_BASE   (AHBPERIPH_BASE + 0x0000)
 
#define DMAC2_BASE   (AHBPERIPH_BASE + 0x0400)
 
#define RCC_BASE   (AHBPERIPH_BASE + 0x1000)
 
#define CRC_BASE   (AHBPERIPH_BASE + 0x3000)
 
#define TRNG_BASE   (AHBPERIPH_BASE + 0x5000)
 
#define AES_BASE   (AHBPERIPH_BASE + 0x6000)
 
#define FLASH_R_BASE   (AHBPERIPH_BASE + 0x2000)
 
#define OB_BASE   ((uint32_t)0x1FFFF800)
 
#define DBGMCU_BASE   ((uint32_t)0xE0042000)
 

Detailed Description

Macro Definition Documentation

◆ DBGMCU_BASE

#define DBGMCU_BASE   ((uint32_t)0xE0042000)

Debug MCU registers base address

◆ FLASH_BASE

#define FLASH_BASE   ((uint32_t)0x08000000)

FLASH base address in the alias region

◆ FLASH_R_BASE

#define FLASH_R_BASE   (AHBPERIPH_BASE + 0x2000)

Flash registers base address

◆ OB_BASE

#define OB_BASE   ((uint32_t)0x1FFFF800)

Flash Option Bytes base address

◆ PERIPH_BASE

#define PERIPH_BASE   ((uint32_t)0x40000000)

Peripheral base address in the alias region

◆ PERIPH_BB_BASE

#define PERIPH_BB_BASE   ((uint32_t)0x42000000)

Peripheral base address in the bit-band region Peripheral memory map

◆ SRAM_BASE

#define SRAM_BASE   ((uint32_t)0x20000000)

SRAM base address in the alias region

◆ SRAM_BB_BASE

#define SRAM_BB_BASE   ((uint32_t)0x22000000)

SRAM base address in the bit-band region