From 267c99850a0795b1563725c33674f2c62f6942a8 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 20 Jan 2022 12:18:33 +0000 Subject: stm32_syscfg: convert to modern. Includes the f4, l0 and wb. f4 renames MEMRM to MEMRMP to be both consistent with other parts and consistent with ref man. Retested on the WB, but l0 and f4 code was simply moved. For yaml files, given how varied syscfg is, we default to using the family name as the type, but still allow overriding via explicit type in the yaml file if desired. Signed-off-by: Karl Palsson --- syscfg/syscfg.h | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 syscfg/syscfg.h (limited to 'syscfg/syscfg.h') diff --git a/syscfg/syscfg.h b/syscfg/syscfg.h deleted file mode 100644 index 0006f7b..0000000 --- a/syscfg/syscfg.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef SYSCFG_H -#define SYSCFG_H - -#include - -#if defined(STM32L0) - -struct SYSCFG_t { - volatile uint32_t CFGR1; - volatile uint32_t CFGR2; - volatile uint32_t EXTICR1; - volatile uint32_t EXTICR2; - volatile uint32_t EXTICR3; - volatile uint32_t EXTICR4; - volatile uint32_t COMP1_CTRL; - volatile uint32_t COMP2_CTRL; - volatile uint32_t CFGR3; -}; - -static SYSCFG_t& SYSCFG = *(SYSCFG_t*)0x40010000; - -#endif - -#if defined(STM32WB) - -struct SYSCFG_t { - 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; - volatile uint32_t SWPR2; - uint32_t _reserved1[53]; // basicallly, vrefbuf is in this slot! - volatile uint32_t IMR1; - volatile uint32_t IMR2; - volatile uint32_t C2IMR1; - volatile uint32_t C2IMR2; - volatile uint32_t SIPCR; -}; - -static SYSCFG_t& SYSCFG = *(SYSCFG_t*)0x40010000; - -#endif - -#endif -- cgit v1.2.3