From b482a3497eaaa47074feb65df171077853be0084 Mon Sep 17 00:00:00 2001 From: barthess Date: Fri, 19 Apr 2013 06:53:13 +0000 Subject: [PATCH] Custom board file updated. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5595 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- boards/NONSTANDARD_STM32F4_BARTHESS1/board.c | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/boards/NONSTANDARD_STM32F4_BARTHESS1/board.c b/boards/NONSTANDARD_STM32F4_BARTHESS1/board.c index c78a97b8d..d38abae8f 100644 --- a/boards/NONSTANDARD_STM32F4_BARTHESS1/board.c +++ b/boards/NONSTANDARD_STM32F4_BARTHESS1/board.c @@ -52,3 +52,30 @@ void __early_init(void) { */ void boardInit(void) { } + +/** + * @brief Inserion monitor function. + * + * @param[in] sdcp pointer to the @p SDCDriver object + * + * @notapi + */ +bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp) { + + (void)sdcp; + return !palReadPad(GPIOE, GPIOE_SDIO_DETECT); +} + +/** + * @brief Protection detection. + * @note Not supported, allways not protected. + * + * @param[in] sdcp pointer to the @p SDCDriver object + * + * @notapi + */ +bool_t sdc_lld_is_write_protected(SDCDriver *sdcp) { + + (void)sdcp; + return FALSE; +}