@.CHARSET CP1251

@ +------------------------------------------------------------------+
@ |                     Оределения GPIO (раздел 8)                   |
@ |                    STM32F030Rxx \ STM32F070Rxx                   |
@ +------------------------------------------------------------------+
@ GP = general-purpose,
@ PP = push-pull,
@ PU = pull-up,
@ PD = pull-down,
@ OD = open-drain,
@ AF = alternate function.

.include "/src/inc/base.inc"

@ константы GPIO
@.item AHB2PERIPH_BASE
.equ GPIOA_BASE                 , AHB2PERIPH_BASE + 0x0000
.equ GPIOB_BASE                 , AHB2PERIPH_BASE + 0x0400
.equ GPIOC_BASE                 , AHB2PERIPH_BASE + 0x0800
.equ GPIOD_BASE                 , AHB2PERIPH_BASE + 0x0C00
.equ GPIOF_BASE                 , AHB2PERIPH_BASE + 0x1400
.equ GPIOA                      , PERIPH_BASE + GPIOA_BASE
.equ GPIOB                      , PERIPH_BASE + GPIOB_BASE
.equ GPIOC                      , PERIPH_BASE + GPIOC_BASE
.equ GPIOD                      , PERIPH_BASE + GPIOD_BASE
.equ GPIOF                      , PERIPH_BASE + GPIOF_BASE
@.end

