diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-04-05 10:14:51 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-04-05 10:14:51 +0000 |
commit | 2381a7019072f8f6983f323a2bc0913ac115aed3 (patch) | |
tree | 86418ad601fa8bd20549736d93ea4b4fc46b537d /os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c | |
parent | 60d63e9970553058597fd78941a7fa0ecb4f374b (diff) | |
download | ChibiOS-2381a7019072f8f6983f323a2bc0913ac115aed3.tar.gz ChibiOS-2381a7019072f8f6983f323a2bc0913ac115aed3.tar.bz2 ChibiOS-2381a7019072f8f6983f323a2bc0913ac115aed3.zip |
Board files regenerated with the updated tool. Fixed some errors in demos.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7854 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c')
-rw-r--r-- | os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c b/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c index 32bad8133..f67cc2962 100644 --- a/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c +++ b/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c @@ -77,10 +77,10 @@ void __early_init(void) { * @brief SDC card detection.
*/
bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
- static bool last_status = false;
-
- if (blkIsTransferring(sdcp))
- return last_status;
+ static bool last_status = false; + + if (blkIsTransferring(sdcp)) + return last_status; return last_status = (bool)palReadPad(GPIOC, GPIOC_SD_D3);
}
@@ -88,8 +88,8 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { * @brief SDC card write protection detection.
*/
bool sdc_lld_is_write_protected(SDCDriver *sdcp) {
-
- (void)sdcp;
+ + (void)sdcp; return false;
}
#endif /* HAL_USE_SDC */
|