2012-10-05 04:29 AM
Hi everyone,
I've found some minor bugs in STM8L15x Peripheral Library (v1.5.1) while working over a project. Reported back to ST but also decided to leave a note in here in case someone needs it. *************************************************************** Diff Report: ***************************************************************
diff -r5a34ce32be92 -r 1917f9c50f4cLibraries/STM8L15x_StdPeriph_Driver/inc/stm8l15x.h
---a/Libraries/STM8L15x_StdPeriph_Driver/inc/stm8l15x.h Thu Sep13 13:51:43 2012 +0300
+++b/Libraries/STM8L15x_StdPeriph_Driver/inc/stm8l15x.h Fri Sep28 17:04:23 2012 +0300
@@ -86,14+86,16 @@
Tip: To avoidmodifying this file each time you need to use different HSE, you
can define theHSE value in your toolchain compiler preprocessor.
*/
-#if !definedHSE_Value
+#if !definedHSE_VALUE
#defineHSE_VALUE ((uint32_t)16000000) /*!< Typical Value of theHSE in Hz */
#endif /*HSE_Value */
/**
* @briefDefinition of External Low Speed oscillator (LSE) frequency
*/
-#defineLSE_VALUE ((uint32_t)32768) /*!< Typical Value of theLSE in Hz */
+#if !definedLSE_VALUE
+ #defineLSE_VALUE ((uint32_t)32768) /*!< Typical Value of theLSE in Hz */
+#endif
diff -r5a34ce32be92 -r 1917f9c50f4cLibraries/STM8L15x_StdPeriph_Driver/src/stm8l15x_clk.c
---a/Libraries/STM8L15x_StdPeriph_Driver/src/stm8l15x_clk.c ThuSep 13 13:51:43 2012 +0300
+++b/Libraries/STM8L15x_StdPeriph_Driver/src/stm8l15x_clk.c FriSep 28 17:04:23 2012 +0300
@@ -493,7+493,7 @@
}
else
{
-clockfrequency = LSE_VALUE;
+sourcefrequency = LSE_VALUE;
}
#stm8l-peripheral-library-bug