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 --- rcc/syscfg.h | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 rcc/syscfg.h (limited to 'rcc/syscfg.h') diff --git a/rcc/syscfg.h b/rcc/syscfg.h deleted file mode 100644 index 74c3a07..0000000 --- a/rcc/syscfg.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef SYSCFG_H -#define SYSCFG_H - -#include - -struct SYSCFG_t { - volatile uint32_t MEMRM; - volatile uint32_t PMC; - volatile uint32_t EXTICR[4]; - volatile uint32_t CMPCR; -}; - -#if defined(STM32F4) -static SYSCFG_t& SYSCFG = *(SYSCFG_t*)0x40013800; -#endif - -void rcc_init(); - -#endif -- cgit v1.2.3