aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM8S
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-05-14 05:24:10 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-05-14 05:24:10 +0000
commit8af2607871d3a2f5bc92ce9fb095a23d7adab27b (patch)
treea2b4dd9433a284d7c972b5f23face2552e3e442a /testhal/STM8S
parent44f0f5de70fcba3065397317b153170169824989 (diff)
downloadChibiOS-8af2607871d3a2f5bc92ce9fb095a23d7adab27b.tar.gz
ChibiOS-8af2607871d3a2f5bc92ce9fb095a23d7adab27b.tar.bz2
ChibiOS-8af2607871d3a2f5bc92ce9fb095a23d7adab27b.zip
Updated HAL configuration files with SDC driver settings.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2953 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM8S')
-rw-r--r--testhal/STM8S/SPI/demo/halconf.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/testhal/STM8S/SPI/demo/halconf.h b/testhal/STM8S/SPI/demo/halconf.h
index c4ff88935..4456d44ba 100644
--- a/testhal/STM8S/SPI/demo/halconf.h
+++ b/testhal/STM8S/SPI/demo/halconf.h
@@ -243,6 +243,36 @@
/*===========================================================================*/
/*===========================================================================*/
+/* SDC driver related settings. */
+/*===========================================================================*/
+/**
+ * @brief Number of initialization attempts before rejecting the card.
+ * @note Attempts are performed at 10mS intevals.
+ */
+#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
+#define SDC_INIT_RETRY 100
+#endif
+
+/**
+ * @brief Include support for MMC cards.
+ * @note MMC support is not yet implemented so this option must be kept
+ * at @p FALSE.
+ */
+#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
+#define SDC_MMC_SUPPORT FALSE
+#endif
+
+/**
+ * @brief Delays insertions.
+ * @details If enabled this options inserts delays into the MMC waiting
+ * routines releasing some extra CPU time for the threads with
+ * lower priority, this may slow down the driver a bit however.
+ */
+#if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
+#define SDC_NICE_WAITING TRUE
+#endif
+
+/*===========================================================================*/
/* SERIAL driver related settings. */
/*===========================================================================*/