aboutsummaryrefslogtreecommitdiffstats
path: root/boards/ST_STM3210E_EVAL/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'boards/ST_STM3210E_EVAL/board.c')
-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.
*/