From 4aea87925ed88c86e2e3475aa031c6a80920b829 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 29 Sep 2015 08:42:00 +0000 Subject: STM32F746 demo complete. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8334 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/boards/ST_STM32F746G_DISCOVERY/board.c | 8 ++++---- os/hal/boards/ST_STM32F746G_DISCOVERY/cfg/board.chcfg | 7 ++++++- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'os/hal/boards/ST_STM32F746G_DISCOVERY') 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 */ diff --git a/os/hal/boards/ST_STM32F746G_DISCOVERY/cfg/board.chcfg b/os/hal/boards/ST_STM32F746G_DISCOVERY/cfg/board.chcfg index 923e407a2..b2d7d8294 100644 --- a/os/hal/boards/ST_STM32F746G_DISCOVERY/cfg/board.chcfg +++ b/os/hal/boards/ST_STM32F746G_DISCOVERY/cfg/board.chcfg @@ -10,7 +10,12 @@ STMicroelectronics STM32F746G-Discovery ST_STM32F746G_DISCOVERY - + + + MII_LAN8742A_ID -- cgit v1.2.3