Attached is a spreadsheet of the MCUs falling under the F4 & F2 HAL.
As it turns out there are a number of MCUs that actually belong in the "hal_lld_type2.h" based on their TIMPRE configuration.
Adapting the existing split header setup could be done by:
1. reworking the MCU assignments between "hal_lld_type1.h" and "hal_lld_type2.h" (per spreadsheet)
2. customise the STM32_TIMCLK1/2 setting code and move it from "hal_lld.h" into each of "hal_lld_type1.h" and "hal_lld_type2.h"
Do you think this is a good approach?
FYI I found a corruption in the F4 stm32_registry.h.
Just a bad character inserted somehow.
--
Bob
Code: Select all
Index: stm32_registry.h
===================================================================
--- stm32_registry.h (revision 12042)
+++ stm32_registry.h (working copy)
@@ -92,7 +92,7 @@
/* Clock tree attributes.*/
#define STM32_HAS_RCC_PLLSAI TRUE
#define STM32_HAS_RCC_PLLI2S TRUE
-#define STM32_HAS_RCC_DCKCFGR TRU§E
+#define STM32_HAS_RCC_DCKCFGR TRUE
#define STM32_HAS_RCC_DCKCFGR2 FALSE
#define STM32_HAS_RCC_I2SSRC TRUE
#define STM32_HAS_RCC_I2SPLLSRC FALSE