aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/sdc_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-04-18 16:55:19 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-04-18 16:55:19 +0000
commit40cf0ca4af999a3ca964867ee81bfc6369e8b4ef (patch)
treed9f19834268a9e32fbc15146b25804f6abab3350 /os/hal/platforms/STM32/sdc_lld.h
parent814b642a0ced73a71ceb3b548c2c570e8631dd58 (diff)
downloadChibiOS-40cf0ca4af999a3ca964867ee81bfc6369e8b4ef.tar.gz
ChibiOS-40cf0ca4af999a3ca964867ee81bfc6369e8b4ef.tar.bz2
ChibiOS-40cf0ca4af999a3ca964867ee81bfc6369e8b4ef.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4113 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/sdc_lld.h')
-rw-r--r--os/hal/platforms/STM32/sdc_lld.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/sdc_lld.h b/os/hal/platforms/STM32/sdc_lld.h
index a807b28ce..3ada980db 100644
--- a/os/hal/platforms/STM32/sdc_lld.h
+++ b/os/hal/platforms/STM32/sdc_lld.h
@@ -88,6 +88,29 @@
#if !defined(SDC_READ_TIMEOUT_MS) || defined(__DOXYGEN__)
#define SDC_READ_TIMEOUT_MS 5
#endif
+
+/**
+ * @brief Support for unaligned transfers.
+ * @note Unaligned transfers are much slower.
+ */
+#if !defined(STM32_SDC_SDIO_UNALIGNED_SUPPORT) || defined(__DOXYGEN__)
+#define STM32_SDC_SDIO_UNALIGNED_SUPPORT TRUE
+#endif
+
+#if STM32_ADVANCED_DMA || defined(__DOXYGEN__)
+
+/**
+ * @brief DMA stream used for SDC operations.
+ * @note This option is only available on platforms with enhanced DMA.
+ */
+#if !defined(STM32_SDC_SDIO_DMA_STREAM) || defined(__DOXYGEN__)
+#define STM32_SDC_SDIO_DMA_STREAM STM32_DMA_STREAM_ID(2, 3)
+#endif
+
+#else /* !STM32_ADVANCED_DMA*/
+#define STM32_SDC_SDIO_DMA_STREAM STM32_DMA_STREAM_ID(2, 4)
+
+#endif /* !STM32_ADVANCED_DMA*/
/** @} */
/*===========================================================================*/