From 7f87eee586adf22f28b1687ef92051065a0a5ee5 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 9 May 2012 17:00:03 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4178 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- boards/ST_STM3210E_EVAL/board.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'boards/ST_STM3210E_EVAL') 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. */ -- cgit v1.2.3