diff options
Diffstat (limited to 'boards/OLIMEX_STM32_E407/board.c')
-rw-r--r-- | boards/OLIMEX_STM32_E407/board.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/boards/OLIMEX_STM32_E407/board.c b/boards/OLIMEX_STM32_E407/board.c index 743811fd0..29b931a29 100644 --- a/boards/OLIMEX_STM32_E407/board.c +++ b/boards/OLIMEX_STM32_E407/board.c @@ -1,6 +1,6 @@ /*
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
- 2011,2012 Giovanni Di Sirio.
+ 2011,2012,2013 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
@@ -65,10 +65,10 @@ void __early_init(void) { * @brief SDC card detection.
*/
bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp) {
- static bool_t last_status = FALSE; - - if (blkIsTransferring(sdcp)) - return last_status; + static bool_t last_status = FALSE;
+
+ if (blkIsTransferring(sdcp))
+ return last_status;
return last_status = (bool_t)palReadPad(GPIOC, GPIOC_SD_D3);
}
@@ -76,8 +76,8 @@ bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp) { * @brief SDC card write protection detection.
*/
bool_t sdc_lld_is_write_protected(SDCDriver *sdcp) {
- - (void)sdcp; +
+ (void)sdcp;
return FALSE;
}
#endif /* HAL_USE_SDC */
|