diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-06-28 18:31:01 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-06-28 18:31:01 +0000 |
commit | 88b5a3238d5f5a13aa6eec764aedfe06aea6c117 (patch) | |
tree | 778bf4446b47f5878c13e234493073db02a660e7 /boards/OLIMEX_STM32_E407 | |
parent | d5cfd83d179d484cb8497c736adb7daf7027efab (diff) | |
download | ChibiOS-88b5a3238d5f5a13aa6eec764aedfe06aea6c117.tar.gz ChibiOS-88b5a3238d5f5a13aa6eec764aedfe06aea6c117.tar.bz2 ChibiOS-88b5a3238d5f5a13aa6eec764aedfe06aea6c117.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4356 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/OLIMEX_STM32_E407')
-rw-r--r-- | boards/OLIMEX_STM32_E407/board.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/boards/OLIMEX_STM32_E407/board.c b/boards/OLIMEX_STM32_E407/board.c index 6c149bbca..7a3aaa4e2 100644 --- a/boards/OLIMEX_STM32_E407/board.c +++ b/boards/OLIMEX_STM32_E407/board.c @@ -58,15 +58,7 @@ void __early_init(void) { bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp) {
(void)sdcp;
- palSetPadMode(GPIOC, GPIOC_SD_D3, PAL_MODE_INPUT);
- if (palReadPad(GPIOC, GPIOC_SD_D3) != PAL_LOW) {
- /* Switching the pin to SDIO mode because after detecting the card the
- SDC driver will start accessing it.*/
- palSetPadMode(GPIOC, GPIOC_SD_D3, PAL_MODE_ALTERNATE(12));
- return TRUE;
- }
- /* Leaving the pin in input mode, it will be polled again.*/
- return FALSE;
+ return (bool_t)palReadPad(GPIOC, GPIOC_SD_D3);
}
/*
|