aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.h20
-rw-r--r--readme.txt2
2 files changed, 22 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.h b/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.h
index cb35827b1..2f7d3cfb2 100644
--- a/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.h
+++ b/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.h
@@ -31,6 +31,26 @@
/* Driver constants. */
/*===========================================================================*/
+/*
+ * The following definitions are missing from some implementations, fixing
+ * as zeroed masks.
+ */
+#if !defined(SDIO_STA_STBITERR)
+#define SDIO_STA_STBITERR 0
+#endif
+
+#if !defined(SDIO_ICR_STBITERRC)
+#define SDIO_ICR_STBITERRC 0
+#endif
+
+#if !defined(SDIO_ICR_CEATAENDC)
+#define SDIO_ICR_CEATAENDC 0
+#endif
+
+#if !defined(SDIO_MASK_STBITERRIE)
+#define SDIO_MASK_STBITERRIE 0
+#endif
+
/**
* @brief Value to clear all interrupts flag at once.
*/
diff --git a/readme.txt b/readme.txt
index f44379bf2..7f60180a9 100644
--- a/readme.txt
+++ b/readme.txt
@@ -123,6 +123,8 @@
- RT: Merged RT4.
- NIL: Merged NIL2.
- NIL: Added STM32F7 demo.
+- HAL: Fixed SDIO driver not compiling on STM32F446 devices (bug #767)
+ (backported to 16.1.6).
- HAL: Fixed error in STM32L4xx ST headers (bug #766)(backported to 16.1.6).
- HAL: Fixed wrong check in win32 simulator serial driver (bug #765)
(backported to 16.1.6, 3.0.6, 2.6.10).