Add SYSCFG to mcu/stm32l.h.

This commit is contained in:
NIIBE Yutaka
2019-04-24 09:37:55 +09:00
parent 2db324e93d
commit 97811f2e1c

View File

@@ -142,3 +142,19 @@ struct USB_STM32L4 {
#define USB_STM32L4_BASE (0x40006854UL)
static struct USB_STM32L4 *const USB_STM32L4 = (struct USB_STM32L4 *)USB_STM32L4_BASE;
struct SYSCFG {
volatile uint32_t MEMRMP;
volatile uint32_t CFGR1;
volatile uint32_t EXTICR[4];
volatile uint32_t SCSR;
volatile uint32_t CFGR2;
volatile uint32_t SWPR;
volatile uint32_t SKR;
};
#define SYSCFG_BASE (APB2PERIPH_BASE+0UL)
static struct SYSCFG *const SYSCFG = (struct SYSCFG *)SYSCFG_BASE;
#define EXTI0_IRQ 6
#define SYSCFG_EXTICR1_EXTI0_PA 0