#1 Different naming of select for STM32_CK48MSEL_PLLI2S in F413 .h file versus common .h file causes compile fail.
Suggested change #define STM32_CK48MSEL_PLLALT STM32_CK48MSEL_PLLI2S for case where PLLI2S is activated.
#2 F413 does not have PLLI2SP which results in a compile error in .c for hal.
Suggested change #define STM32_PLLI2SP 0 in F413 lld .h file.
--
Bob
Code: Select all
Index: hal_lld_type2.h
===================================================================
--- hal_lld_type2.h (revision 12537)
+++ hal_lld_type2.h (working copy)
@@ -1077,6 +1077,7 @@
* @brief PLLI2S activation flag.
*/
#define STM32_ACTIVATE_PLLI2S TRUE
+#define STM32_CK48MSEL_PLLALT STM32_CK48MSEL_PLLI2S
#else
#define STM32_ACTIVATE_PLLI2S FALSE
#endif
@@ -1170,6 +1171,12 @@
#define STM32_PLLI2S_R_CLKOUT (STM32_PLLI2SVCO / STM32_PLLI2SR_VALUE)
/**
+ * @brief PLLI2SP enable bit.
+ * @note Always 0, there is no PLLI2SP.
+ */
+#define STM32_PLLI2SP 0
+
+/**
* @brief PLLSAI activation flag.
* @note Always FALSE, there is no PLLSAI.
*/