From c9c8938a97100d95e75b56d7f28922e6f78a3405 Mon Sep 17 00:00:00 2001 From: Vovanium Date: Thu, 18 Jan 2024 18:53:27 +0300 Subject: [PATCH] >< SYSCFG renamed to System_Configuration --- library/source/f4/stm32-f407-syscfg.ads | 12 ------------ .../source/f4/stm32-f407-system_configuration.ads | 12 ++++++++++++ library/source/f4/stm32-f429-syscfg.ads | 5 ----- .../source/f4/stm32-f429-system_configuration.ads | 5 +++++ ...m32-syscfg.ads => stm32-system_configuration.ads} | 4 ++-- 5 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 library/source/f4/stm32-f407-syscfg.ads create mode 100644 library/source/f4/stm32-f407-system_configuration.ads delete mode 100644 library/source/f4/stm32-f429-syscfg.ads create mode 100644 library/source/f4/stm32-f429-system_configuration.ads rename library/source/f4/{stm32-syscfg.ads => stm32-system_configuration.ads} (97%) diff --git a/library/source/f4/stm32-f407-syscfg.ads b/library/source/f4/stm32-f407-syscfg.ads deleted file mode 100644 index ac7e93d..0000000 --- a/library/source/f4/stm32-f407-syscfg.ads +++ /dev/null @@ -1,12 +0,0 @@ -with System.Storage_Elements; -with STM32.Address_Map; -with STM32.SYSCFG; - -package STM32.F407.SYSCFG is - - package SYSCFG_Base renames STM32.SYSCFG; - - SYSCFG_HW : SYSCFG_Base.SYSCFG_Registers with Volatile, Import, - Address => System.Storage_Elements.To_Address (STM32.Address_Map.SYSCFG); - -end STM32.F407.SYSCFG; \ No newline at end of file diff --git a/library/source/f4/stm32-f407-system_configuration.ads b/library/source/f4/stm32-f407-system_configuration.ads new file mode 100644 index 0000000..d503f0d --- /dev/null +++ b/library/source/f4/stm32-f407-system_configuration.ads @@ -0,0 +1,12 @@ +with System.Storage_Elements; +with STM32.Address_Map; +with STM32.System_Configuration; + +package STM32.F407.System_Configuration is + + package SYSCFG_Base renames STM32.System_Configuration; + + SYSCFG : SYSCFG_Base.SYSCFG_Registers with Volatile, Import, + Address => System.Storage_Elements.To_Address (STM32.Address_Map.SYSCFG); + +end STM32.F407.System_Configuration; \ No newline at end of file diff --git a/library/source/f4/stm32-f429-syscfg.ads b/library/source/f4/stm32-f429-syscfg.ads deleted file mode 100644 index d10bcf6..0000000 --- a/library/source/f4/stm32-f429-syscfg.ads +++ /dev/null @@ -1,5 +0,0 @@ -with STM32.F407.SYSCFG; - -package STM32.F429.SYSCFG renames STM32.F407.SYSCFG; - --- todo: differentiate \ No newline at end of file diff --git a/library/source/f4/stm32-f429-system_configuration.ads b/library/source/f4/stm32-f429-system_configuration.ads new file mode 100644 index 0000000..c69bdf5 --- /dev/null +++ b/library/source/f4/stm32-f429-system_configuration.ads @@ -0,0 +1,5 @@ +with STM32.F407.System_Configuration; + +package STM32.F429.System_Configuration renames STM32.F407.System_Configuration; + +-- todo: differentiate \ No newline at end of file diff --git a/library/source/f4/stm32-syscfg.ads b/library/source/f4/stm32-system_configuration.ads similarity index 97% rename from library/source/f4/stm32-syscfg.ads rename to library/source/f4/stm32-system_configuration.ads index 8da4a9b..b27b9eb 100644 --- a/library/source/f4/stm32-syscfg.ads +++ b/library/source/f4/stm32-system_configuration.ads @@ -1,4 +1,4 @@ -package STM32.SysCfg with Pure is +package STM32.System_Configuration with Pure is type Memory_Mapping is ( Main_Flash, @@ -139,4 +139,4 @@ package STM32.SysCfg with Pure is CMPCR at 16#20# range 0 .. 31; end record; -end STM32.SysCfg; +end STM32.System_Configuration;