aboutsummaryrefslogtreecommitdiffstats
path: root/boards/ST_STM3210E_EVAL
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-05-09 17:00:03 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-05-09 17:00:03 +0000
commit7f87eee586adf22f28b1687ef92051065a0a5ee5 (patch)
treea3d199558c7671e31e9ebac4f79f8f4596e2493e /boards/ST_STM3210E_EVAL
parent8f8b7f2c69575736da9004c8dc45c770b0f08c48 (diff)
downloadChibiOS-7f87eee586adf22f28b1687ef92051065a0a5ee5.tar.gz
ChibiOS-7f87eee586adf22f28b1687ef92051065a0a5ee5.tar.bz2
ChibiOS-7f87eee586adf22f28b1687ef92051065a0a5ee5.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4178 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/ST_STM3210E_EVAL')
-rw-r--r--boards/ST_STM3210E_EVAL/board.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/boards/ST_STM3210E_EVAL/board.c b/boards/ST_STM3210E_EVAL/board.c
index b258224f8..a819aaf0f 100644
--- a/boards/ST_STM3210E_EVAL/board.c
+++ b/boards/ST_STM3210E_EVAL/board.c
@@ -49,6 +49,21 @@ void __early_init(void) {
stm32_clock_init();
}
+#if HAL_USE_SDC
+/* Board-related functions related to the SDC driver.*/
+bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp) {
+
+ (void)sdcp;
+ return !palReadPad(GPIOF, GPIOF_SD_DETECT);
+}
+
+bool_t sdc_lld_is_write_protected(SDCDriver *sdcp) {
+
+ (void)sdcp;
+ return FALSE;
+}
+#endif
+
/*
* Board-specific initialization code.
*/