aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/ports/STM32/STM32F7xx/hal_lld.h12
-rw-r--r--readme.txt2
2 files changed, 8 insertions, 6 deletions
diff --git a/os/hal/ports/STM32/STM32F7xx/hal_lld.h b/os/hal/ports/STM32/STM32F7xx/hal_lld.h
index 7fbf8fe9d..8bce8bfbe 100644
--- a/os/hal/ports/STM32/STM32F7xx/hal_lld.h
+++ b/os/hal/ports/STM32/STM32F7xx/hal_lld.h
@@ -1935,11 +1935,11 @@
#if (STM32_SAI1SEL == STM32_SAI1SEL_OFF) || defined(__DOXYGEN__)
#define STM32_SAI1CLK 0
#elif STM32_SAI1SEL == STM32_SAI1SEL_SAIPLL
-#define STM32_SAI1SEL STM32_PLLSAIDIVQ_CLKOUT
+#define STM32_SAI1CLK STM32_PLLSAIDIVQ_CLKOUT
#elif STM32_SAI1SEL == STM32_SAI1SEL_I2SPLL
-#define STM32_SAI1SEL STM32_PLLI2SDIVQ_CLKOUT
+#define STM32_SAI1CLK STM32_PLLI2SDIVQ_CLKOUT
#elif STM32_SAI1SEL == STM32_SAI1SEL_CKIN
-#define STM32_SAI1SEL 0 /* Unknown, would require a board value */
+#define STM32_SAI1CLK 0 /* Unknown, would require a board value */
#else
#error "invalid source selected for SAI1 clock"
#endif
@@ -1950,11 +1950,11 @@
#if (STM32_SAI2SEL == STM32_SAI2SEL_OFF) || defined(__DOXYGEN__)
#define STM32_SAI2CLK 0
#elif STM32_SAI2SEL == STM32_SAI2SEL_SAIPLL
-#define STM32_SAI2SEL STM32_PLLSAIDIVQ_CLKOUT
+#define STM32_SAI2CLK STM32_PLLSAIDIVQ_CLKOUT
#elif STM32_SAI2SEL == STM32_SAI2SEL_I2SPLL
-#define STM32_SAI2SEL STM32_PLLI2SDIVQ_CLKOUT
+#define STM32_SAI2CLK STM32_PLLI2SDIVQ_CLKOUT
#elif STM32_SAI2SEL == STM32_SAI2SEL_CKIN
-#define STM32_SAI2SEL 0 /* Unknown, would require a board value */
+#define STM32_SAI2CLK 0 /* Unknown, would require a board value */
#else
#error "invalid source selected for SAI2 clock"
#endif
diff --git a/readme.txt b/readme.txt
index 801a7ae26..85c5666d3 100644
--- a/readme.txt
+++ b/readme.txt
@@ -93,6 +93,8 @@
dependencies and configuration directories. This makes possible
to have multiple non-conflicting makefiles in the same project.
Updated the various platform.mk implementing "smart build" mode.
+- HAL: Fixed wrong SAI1 and SAI2 clock selection (bug #873)
+ (backported to 17.6.1).
- HAL: Fixed invalid number of DMA channels on STM32L011 (bug #872)
(backported to 17.6.1).
- HAL: Fixed STM32 USARTv2 serial incorrect buffer size declarations