Documentation
¶
Overview ¶
Package mmap provides base memory adresses for all peripherals.
Index ¶
Constants ¶
View Source
const ( FLASH_BASE uintptr = 0x08000000 // FLASH base address in the alias region FLASH_BANK1_END uintptr = 0x0800FFFF // FLASH END address of bank1 SRAM_BASE uintptr = 0x20000000 // SRAM base address in the alias region PERIPH_BASE uintptr = 0x40000000 // Peripheral base address in the alias region )
View Source
const ( APBPERIPH_BASE uintptr = PERIPH_BASE AHBPERIPH_BASE uintptr = PERIPH_BASE + 0x00020000 AHB2PERIPH_BASE uintptr = PERIPH_BASE + 0x08000000 )
Peripheral memory map
View Source
const ( TIM3_BASE uintptr = APBPERIPH_BASE + 0x00000400 TIM6_BASE uintptr = APBPERIPH_BASE + 0x00001000 TIM14_BASE uintptr = APBPERIPH_BASE + 0x00002000 RTC_BASE uintptr = APBPERIPH_BASE + 0x00002800 WWDG_BASE uintptr = APBPERIPH_BASE + 0x00002C00 IWDG_BASE uintptr = APBPERIPH_BASE + 0x00003000 SPI2_BASE uintptr = APBPERIPH_BASE + 0x00003800 USART2_BASE uintptr = APBPERIPH_BASE + 0x00004400 I2C1_BASE uintptr = APBPERIPH_BASE + 0x00005400 I2C2_BASE uintptr = APBPERIPH_BASE + 0x00005800 PWR_BASE uintptr = APBPERIPH_BASE + 0x00007000 SYSCFG_BASE uintptr = APBPERIPH_BASE + 0x00010000 EXTI_BASE uintptr = APBPERIPH_BASE + 0x00010400 ADC1_BASE uintptr = APBPERIPH_BASE + 0x00012400 ADC_BASE uintptr = APBPERIPH_BASE + 0x00012708 TIM1_BASE uintptr = APBPERIPH_BASE + 0x00012C00 SPI1_BASE uintptr = APBPERIPH_BASE + 0x00013000 USART1_BASE uintptr = APBPERIPH_BASE + 0x00013800 TIM15_BASE uintptr = APBPERIPH_BASE + 0x00014000 TIM16_BASE uintptr = APBPERIPH_BASE + 0x00014400 TIM17_BASE uintptr = APBPERIPH_BASE + 0x00014800 DBGMCU_BASE uintptr = APBPERIPH_BASE + 0x00015800 )
APB peripherals
View Source
const ( DMA1_BASE uintptr = AHBPERIPH_BASE + 0x00000000 DMA1_Channel1_BASE uintptr = DMA1_BASE + 0x00000008 DMA1_Channel2_BASE uintptr = DMA1_BASE + 0x0000001C DMA1_Channel3_BASE uintptr = DMA1_BASE + 0x00000030 DMA1_Channel4_BASE uintptr = DMA1_BASE + 0x00000044 DMA1_Channel5_BASE uintptr = DMA1_BASE + 0x00000058 RCC_BASE uintptr = AHBPERIPH_BASE + 0x00001000 FLASH_R_BASE uintptr = AHBPERIPH_BASE + 0x00002000 // FLASH registers base address OB_BASE uintptr = 0x1FFFF800 // FLASH Option Bytes base address FLASHSIZE_BASE uintptr = 0x1FFFF7CC // FLASH Size register base address UID_BASE uintptr = 0x1FFFF7AC // Unique device ID register base address CRC_BASE uintptr = AHBPERIPH_BASE + 0x00003000 )
AHB peripherals
View Source
const ( GPIOA_BASE uintptr = AHB2PERIPH_BASE + 0x00000000 GPIOB_BASE uintptr = AHB2PERIPH_BASE + 0x00000400 GPIOC_BASE uintptr = AHB2PERIPH_BASE + 0x00000800 GPIOD_BASE uintptr = AHB2PERIPH_BASE + 0x00000C00 GPIOF_BASE uintptr = AHB2PERIPH_BASE + 0x00001400 )
AHB2 peripherals
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.