libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
SYSCFG Defines

Defined Constants and Types for the STM32L4xx Sysconfig. More...

Collaboration diagram for SYSCFG Defines:

Macros

#define SYSCFG_MEMRMP   MMIO32(SYSCFG_BASE + 0x00)
 
#define SYSCFG_CFGR1   MMIO32(SYSCFG_BASE + 0x04)
 
#define SYSCFG_EXTICR(i)   MMIO32(SYSCFG_BASE + 0x08 + (i)*4)
 
#define SYSCFG_EXTICR1   SYSCFG_EXTICR(0)
 
#define SYSCFG_EXTICR2   SYSCFG_EXTICR(1)
 
#define SYSCFG_EXTICR3   SYSCFG_EXTICR(2)
 
#define SYSCFG_EXTICR4   SYSCFG_EXTICR(3)
 
#define SYSCFG_SCSR   MMIO32(SYSCFG_BASE + 0x18)
 
#define SYSCFG_CFGR2   MMIO32(SYSCFG_BASE + 0x1C)
 
#define SYSCFG_SWPR   MMIO32(SYSCFG_BASE + 0x20)
 
#define SYSCFG_SKR   MMIO32(SYSCFG_BASE + 0x24)
 
#define SYSCFG_SWPR2   MMIO32(SYSCFG_BASE + 0x29)
 
#define SYSCFG_MEMRMP_MEM_MODE_MASK   7
 
#define SYSCFG_MEMRMP_MEM_MODE_FLASH   0
 
#define SYSCFG_MEMRMP_MEM_MODE_SYSTEM   1
 
#define SYSCFG_MEMRMP_MEM_MODE_FMC   2
 
#define SYSCFG_MEMRMP_MEM_MODE_SRAM   3
 
#define SYSCFG_MEMRMP_MEM_MODE_QSPI   6
 
#define SYSCFG_CFGR1_FPU_IE_INEXACT   (1 << 31)
 
#define SYSCFG_CFGR1_FPU_IE_DENORMAL   (1 << 30)
 
#define SYSCFG_CFGR1_FPU_IE_OVERFLOW   (1 << 29)
 
#define SYSCFG_CFGR1_FPU_IE_UNDERFLOW   (1 << 28)
 
#define SYSCFG_CFGR1_FPU_IE_DIVZERO   (1 << 27)
 
#define SYSCFG_CFGR1_FPU_IE_INVALID   (1 << 26)
 
#define SYSCFG_CFGR1_I2C3_FMP   (1 << 22)
 
#define SYSCFG_CFGR1_I2C2_FMP   (1 << 21)
 
#define SYSCFG_CFGR1_I2C1_FMP   (1 << 20)
 
#define SYSCFG_CFGR1_I2C_PB9_FMP   (1 << 19)
 
#define SYSCFG_CFGR1_I2C_PB8_FMP   (1 << 18)
 
#define SYSCFG_CFGR1_I2C_PB7_FMP   (1 << 17)
 
#define SYSCFG_CFGR1_I2C_PB6_FMP   (1 << 16)
 
#define SYSCFG_CFGR1_BOOSTEN   (1 << 8)
 
#define SYSCFG_CFGR1_FWDIS   (1 << 0)
 
#define SYSCFG_EXTICR_FIELDSIZE   4
 
#define SYSCFG_EXTICR_GPIOA   0
 
#define SYSCFG_EXTICR_GPIOB   1
 
#define SYSCFG_EXTICR_GPIOC   2
 
#define SYSCFG_EXTICR_GPIOD   3
 
#define SYSCFG_EXTICR_GPIOE   4
 
#define SYSCFG_EXTICR_GPIOH   7
 
#define SYSCFG_SCSR_SRAM2BSY   (1 << 1)
 
#define SYSCFG_SCSR_SRAM2ER   (1 << 0)
 
#define SYSCFG_CFGR2_SPF   (1 << 8)
 
#define SYSCFG_CFGR2_ECCL   (1 << 3)
 
#define SYSCFG_CFGR2_PVDL   (1 << 2)
 
#define SYSCFG_CFGR2_SPL   (1 << 1)
 
#define SYSCFG_CFGR2_CCL   (1 << 0)
 
#define SYSCFG_SWPR_PxWP(x)   (1 << x)
 
#define SYSCFG_SKR_KEY1   0xCA
 
#define SYSCFG_SKR_KEY2   0x53
 
#define SYSCFG_SWPR2_PxWP(x)   (1 << (x - 32))
 

Detailed Description

Defined Constants and Types for the STM32L4xx Sysconfig.

Version
1.0.0
Date
28 December 2017

LGPL License Terms libopencm3 License

Macro Definition Documentation

◆ SYSCFG_CFGR1

#define SYSCFG_CFGR1   MMIO32(SYSCFG_BASE + 0x04)

Definition at line 40 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_BOOSTEN

#define SYSCFG_CFGR1_BOOSTEN   (1 << 8)

Definition at line 79 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_FPU_IE_DENORMAL

#define SYSCFG_CFGR1_FPU_IE_DENORMAL   (1 << 30)

Definition at line 64 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_FPU_IE_DIVZERO

#define SYSCFG_CFGR1_FPU_IE_DIVZERO   (1 << 27)

Definition at line 67 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_FPU_IE_INEXACT

#define SYSCFG_CFGR1_FPU_IE_INEXACT   (1 << 31)

Definition at line 63 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_FPU_IE_INVALID

#define SYSCFG_CFGR1_FPU_IE_INVALID   (1 << 26)

Definition at line 68 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_FPU_IE_OVERFLOW

#define SYSCFG_CFGR1_FPU_IE_OVERFLOW   (1 << 29)

Definition at line 65 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_FPU_IE_UNDERFLOW

#define SYSCFG_CFGR1_FPU_IE_UNDERFLOW   (1 << 28)

Definition at line 66 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_FWDIS

#define SYSCFG_CFGR1_FWDIS   (1 << 0)

Definition at line 80 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_I2C1_FMP

#define SYSCFG_CFGR1_I2C1_FMP   (1 << 20)

Definition at line 72 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_I2C2_FMP

#define SYSCFG_CFGR1_I2C2_FMP   (1 << 21)

Definition at line 71 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_I2C3_FMP

#define SYSCFG_CFGR1_I2C3_FMP   (1 << 22)

Definition at line 70 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_I2C_PB6_FMP

#define SYSCFG_CFGR1_I2C_PB6_FMP   (1 << 16)

Definition at line 77 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_I2C_PB7_FMP

#define SYSCFG_CFGR1_I2C_PB7_FMP   (1 << 17)

Definition at line 76 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_I2C_PB8_FMP

#define SYSCFG_CFGR1_I2C_PB8_FMP   (1 << 18)

Definition at line 75 of file l4/syscfg.h.

◆ SYSCFG_CFGR1_I2C_PB9_FMP

#define SYSCFG_CFGR1_I2C_PB9_FMP   (1 << 19)

Definition at line 74 of file l4/syscfg.h.

◆ SYSCFG_CFGR2

#define SYSCFG_CFGR2   MMIO32(SYSCFG_BASE + 0x1C)

Definition at line 47 of file l4/syscfg.h.

◆ SYSCFG_CFGR2_CCL

#define SYSCFG_CFGR2_CCL   (1 << 0)

Definition at line 103 of file l4/syscfg.h.

◆ SYSCFG_CFGR2_ECCL

#define SYSCFG_CFGR2_ECCL   (1 << 3)

Definition at line 100 of file l4/syscfg.h.

◆ SYSCFG_CFGR2_PVDL

#define SYSCFG_CFGR2_PVDL   (1 << 2)

Definition at line 101 of file l4/syscfg.h.

◆ SYSCFG_CFGR2_SPF

#define SYSCFG_CFGR2_SPF   (1 << 8)

Definition at line 99 of file l4/syscfg.h.

◆ SYSCFG_CFGR2_SPL

#define SYSCFG_CFGR2_SPL   (1 << 1)

Definition at line 102 of file l4/syscfg.h.

◆ SYSCFG_EXTICR

#define SYSCFG_EXTICR (   i)    MMIO32(SYSCFG_BASE + 0x08 + (i)*4)

Definition at line 41 of file l4/syscfg.h.

◆ SYSCFG_EXTICR1

#define SYSCFG_EXTICR1   SYSCFG_EXTICR(0)

Definition at line 42 of file l4/syscfg.h.

◆ SYSCFG_EXTICR2

#define SYSCFG_EXTICR2   SYSCFG_EXTICR(1)

Definition at line 43 of file l4/syscfg.h.

◆ SYSCFG_EXTICR3

#define SYSCFG_EXTICR3   SYSCFG_EXTICR(2)

Definition at line 44 of file l4/syscfg.h.

◆ SYSCFG_EXTICR4

#define SYSCFG_EXTICR4   SYSCFG_EXTICR(3)

Definition at line 45 of file l4/syscfg.h.

◆ SYSCFG_EXTICR_FIELDSIZE

#define SYSCFG_EXTICR_FIELDSIZE   4

Definition at line 84 of file l4/syscfg.h.

◆ SYSCFG_EXTICR_GPIOA

#define SYSCFG_EXTICR_GPIOA   0

Definition at line 85 of file l4/syscfg.h.

◆ SYSCFG_EXTICR_GPIOB

#define SYSCFG_EXTICR_GPIOB   1

Definition at line 86 of file l4/syscfg.h.

◆ SYSCFG_EXTICR_GPIOC

#define SYSCFG_EXTICR_GPIOC   2

Definition at line 87 of file l4/syscfg.h.

◆ SYSCFG_EXTICR_GPIOD

#define SYSCFG_EXTICR_GPIOD   3

Definition at line 88 of file l4/syscfg.h.

◆ SYSCFG_EXTICR_GPIOE

#define SYSCFG_EXTICR_GPIOE   4

Definition at line 89 of file l4/syscfg.h.

◆ SYSCFG_EXTICR_GPIOH

#define SYSCFG_EXTICR_GPIOH   7

Definition at line 90 of file l4/syscfg.h.

◆ SYSCFG_MEMRMP

#define SYSCFG_MEMRMP   MMIO32(SYSCFG_BASE + 0x00)

Definition at line 39 of file l4/syscfg.h.

◆ SYSCFG_MEMRMP_MEM_MODE_FLASH

#define SYSCFG_MEMRMP_MEM_MODE_FLASH   0

Definition at line 55 of file l4/syscfg.h.

◆ SYSCFG_MEMRMP_MEM_MODE_FMC

#define SYSCFG_MEMRMP_MEM_MODE_FMC   2

Definition at line 57 of file l4/syscfg.h.

◆ SYSCFG_MEMRMP_MEM_MODE_MASK

#define SYSCFG_MEMRMP_MEM_MODE_MASK   7

Definition at line 54 of file l4/syscfg.h.

◆ SYSCFG_MEMRMP_MEM_MODE_QSPI

#define SYSCFG_MEMRMP_MEM_MODE_QSPI   6

Definition at line 59 of file l4/syscfg.h.

◆ SYSCFG_MEMRMP_MEM_MODE_SRAM

#define SYSCFG_MEMRMP_MEM_MODE_SRAM   3

Definition at line 58 of file l4/syscfg.h.

◆ SYSCFG_MEMRMP_MEM_MODE_SYSTEM

#define SYSCFG_MEMRMP_MEM_MODE_SYSTEM   1

Definition at line 56 of file l4/syscfg.h.

◆ SYSCFG_SCSR

#define SYSCFG_SCSR   MMIO32(SYSCFG_BASE + 0x18)

Definition at line 46 of file l4/syscfg.h.

◆ SYSCFG_SCSR_SRAM2BSY

#define SYSCFG_SCSR_SRAM2BSY   (1 << 1)

Definition at line 94 of file l4/syscfg.h.

◆ SYSCFG_SCSR_SRAM2ER

#define SYSCFG_SCSR_SRAM2ER   (1 << 0)

Definition at line 95 of file l4/syscfg.h.

◆ SYSCFG_SKR

#define SYSCFG_SKR   MMIO32(SYSCFG_BASE + 0x24)

Definition at line 49 of file l4/syscfg.h.

◆ SYSCFG_SKR_KEY1

#define SYSCFG_SKR_KEY1   0xCA

Definition at line 112 of file l4/syscfg.h.

◆ SYSCFG_SKR_KEY2

#define SYSCFG_SKR_KEY2   0x53

Definition at line 113 of file l4/syscfg.h.

◆ SYSCFG_SWPR

#define SYSCFG_SWPR   MMIO32(SYSCFG_BASE + 0x20)

Definition at line 48 of file l4/syscfg.h.

◆ SYSCFG_SWPR2

#define SYSCFG_SWPR2   MMIO32(SYSCFG_BASE + 0x29)

Definition at line 50 of file l4/syscfg.h.

◆ SYSCFG_SWPR2_PxWP

#define SYSCFG_SWPR2_PxWP (   x)    (1 << (x - 32))

Definition at line 118 of file l4/syscfg.h.

◆ SYSCFG_SWPR_PxWP

#define SYSCFG_SWPR_PxWP (   x)    (1 << x)

Definition at line 108 of file l4/syscfg.h.