@.CharSet=CP1251 (Cyrillic)
@GNU AS

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

@.item APB2PERIPH_BASE
.equ SYSCFG_BASE                , (APB2PERIPH_BASE + 0x3800)
@.end

@.item SYSCFG_BASE
.EQU  SYSCFG_MEMRMP      , 0x00          @ SYSCFG memory remap register (SYSCFG_MEMRMP)
.EQU  SYSCFG_PMC         , 0x04          @ SYSCFG peripheral mode configuration register (SYSCFG_PMC)
.EQU  SYSCFG_EXTICR1     , 0x08          @ SYSCFG external interrupt configuration register 1 (SYSCFG_EXTICR1)
.EQU  SYSCFG_EXTICR2     , 0x0C          @ SYSCFG external interrupt configuration register 2 (SYSCFG_EXTICR2)
.EQU  SYSCFG_EXTICR3     , 0x10          @ SYSCFG external interrupt configuration register 3 (SYSCFG_EXTICR3)
.EQU  SYSCFG_EXTICR4     , 0x14          @ SYSCFG external interrupt configuration register 4 (SYSCFG_EXTICR4)
.EQU  SYSCFG_CMPCR       , 0x20          @ Compensation cell control register (SYSCFG_CMPCR)
@.END

@.item SYSCFG_MEMRMP
.EQU  SYSCFG_MEMRMP_MEM_MODE_N, 0        @  Bits 1:0 MEM_MODE: Memory mapping selection
.EQU  SYSCFG_MEMRMP_MAIN_FLASH, 0x00     @ Main Flash memory mapped at 0x0000 0000
.EQU  SYSCFG_MEMRMP_SYSTEM_FLASH, 0x01    @ System Flash memory mapped at 0x0000 0000
.EQU  SYSCFG_MEMRMP_FSMC1_BANK1, 0x02    @ FSMC Bank1 (NOR/PSRAM 1 and 2) mapped at 0x0000 0000
.EQU  SYSCFG_MEMRMP_SRAM , 0x03          @ Embedded SRAM (SRAM1) mapped at 0x0000 0000
@.END

@.item SYSCFG_PMC
.equ SYSCFG_MEMRMP_MII_RMII_SEL , 0x01<<23 @ Bit 23 MII_RMII_SEL: Ethernet PHY interface selection
@.end

@.item SYSCFG_EXTICR1
.EQU  SYSCFG_EXTICR1_EXTI0_N, 0
.EQU  SYSCFG_EXTICR1_EXTI1_N, 4
.EQU  SYSCFG_EXTICR1_EXTI2_N, 8
.EQU  SYSCFG_EXTICR1_EXTI3_N, 12
@.END

@.ITEM     SYSCFG_EXTICR2
.EQU  SYSCFG_EXTICR2_EXTI4_N, 0
.EQU  SYSCFG_EXTICR2_EXTI5_N, 4
.EQU  SYSCFG_EXTICR2_EXTI6_N, 8
.EQU  SYSCFG_EXTICR2_EXTI7_N, 12
@.END

@.ITEM     SYSCFG_EXTICR3
.EQU  SYSCFG_EXTICR3_EXTI8_N, 0
.EQU  SYSCFG_EXTICR3_EXTI9_N, 4
.EQU  SYSCFG_EXTICR3_EXTI10_N, 8
.EQU  SYSCFG_EXTICR3_EXTI11_N, 12
@.END

@.ITEM     SYSCFG_EXTICR4
.EQU  SYSCFG_EXTICR4_EXTI12_N, 0
.EQU  SYSCFG_EXTICR4_EXTI13_N, 4
.EQU  SYSCFG_EXTICR4_EXTI14_N, 8
.EQU  SYSCFG_EXTICR4_EXTI15_N, 12
@.END

@.item SYSCFG_CMPCR
.EQU  SYSCFG_CMPCR_READY_N, 8            @  Bit 8 READY: Compensation cell ready flag
.EQU  SYSCFG_CMPCR_READY , 1 << 8        @ Bit 8 READY: Compensation cell ready flag
.EQU  SYSCFG_CMPCR_CMP_PD_N, 0           @  Bit 0 CMP_PD: Compensation cell power-down
.EQU  SYSCFG_CMPCR_CMP_PD, 1
@.END

