aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/ST_STM32F746G_DISCOVERY/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/boards/ST_STM32F746G_DISCOVERY/board.c')
-rw-r--r--os/hal/boards/ST_STM32F746G_DISCOVERY/board.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/boards/ST_STM32F746G_DISCOVERY/board.c b/os/hal/boards/ST_STM32F746G_DISCOVERY/board.c
index c340f41d6..02873cd62 100644
--- a/os/hal/boards/ST_STM32F746G_DISCOVERY/board.c
+++ b/os/hal/boards/ST_STM32F746G_DISCOVERY/board.c
@@ -95,10 +95,10 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
* @brief SDC card write protection detection.
*/
bool sdc_lld_is_write_protected(SDCDriver *sdcp) {
-
- (void)sdcp;
- /* TODO: Fill the implementation.*/
- return false;
+
+ (void)sdcp;
+
+ return !palReadPad(GPIOC, GPIOC_SD_DETECT);
}
#endif /* HAL_USE_SDC */