aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/boards/ST_STM32F769I_DISCOVERY/board.c6
-rw-r--r--os/hal/boards/ST_STM32F769I_DISCOVERY/board.h6
-rw-r--r--os/hal/boards/ST_STM32F769I_DISCOVERY/cfg/board.chcfg4
-rw-r--r--readme.txt2
4 files changed, 10 insertions, 8 deletions
diff --git a/os/hal/boards/ST_STM32F769I_DISCOVERY/board.c b/os/hal/boards/ST_STM32F769I_DISCOVERY/board.c
index 94ec0b449..f371e03ca 100644
--- a/os/hal/boards/ST_STM32F769I_DISCOVERY/board.c
+++ b/os/hal/boards/ST_STM32F769I_DISCOVERY/board.c
@@ -218,9 +218,9 @@ void __early_init(void) {
* @brief SDC card detection.
*/
bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
-
- (void)sdcp;
-
+
+ (void)sdcp;
+
return !palReadLine(LINE_SD_DETECT);
}
diff --git a/os/hal/boards/ST_STM32F769I_DISCOVERY/board.h b/os/hal/boards/ST_STM32F769I_DISCOVERY/board.h
index a919ad35c..1f6a907da 100644
--- a/os/hal/boards/ST_STM32F769I_DISCOVERY/board.h
+++ b/os/hal/boards/ST_STM32F769I_DISCOVERY/board.h
@@ -1173,7 +1173,7 @@
* PG5 - FMC_BA1 (alternate 12).
* PG6 - EXT_SDA (input pullup).
* PG7 - SAI1_MCLKA (alternate 6).
- * PG8 - FMC_SDCLK (input floating).
+ * PG8 - FMC_SDCLK (alternate 12).
* PG9 - SD_D0 (alternate 11).
* PG10 - SD_D1 (alternate 11).
* PG11 - RMII_TX_EN (alternate 11).
@@ -1190,7 +1190,7 @@
PIN_MODE_ALTERNATE(GPIOG_FMC_BA1) | \
PIN_MODE_INPUT(GPIOG_EXT_SDA) | \
PIN_MODE_ALTERNATE(GPIOG_SAI1_MCLKA) | \
- PIN_MODE_INPUT(GPIOG_FMC_SDCLK) | \
+ PIN_MODE_ALTERNATE(GPIOG_FMC_SDCLK) | \
PIN_MODE_ALTERNATE(GPIOG_SD_D0) | \
PIN_MODE_ALTERNATE(GPIOG_SD_D1) | \
PIN_MODE_ALTERNATE(GPIOG_RMII_TX_EN) | \
@@ -1270,7 +1270,7 @@
PIN_AFIO_AF(GPIOG_FMC_BA1, 12U) | \
PIN_AFIO_AF(GPIOG_EXT_SDA, 0U) | \
PIN_AFIO_AF(GPIOG_SAI1_MCLKA, 6U))
-#define VAL_GPIOG_AFRH (PIN_AFIO_AF(GPIOG_FMC_SDCLK, 0U) | \
+#define VAL_GPIOG_AFRH (PIN_AFIO_AF(GPIOG_FMC_SDCLK, 12U) | \
PIN_AFIO_AF(GPIOG_SD_D0, 11U) | \
PIN_AFIO_AF(GPIOG_SD_D1, 11U) | \
PIN_AFIO_AF(GPIOG_RMII_TX_EN, 11U) | \
diff --git a/os/hal/boards/ST_STM32F769I_DISCOVERY/cfg/board.chcfg b/os/hal/boards/ST_STM32F769I_DISCOVERY/cfg/board.chcfg
index 29d29c70f..9add71721 100644
--- a/os/hal/boards/ST_STM32F769I_DISCOVERY/cfg/board.chcfg
+++ b/os/hal/boards/ST_STM32F769I_DISCOVERY/cfg/board.chcfg
@@ -884,8 +884,8 @@
Level="High"
Speed="Maximum"
Resistor="Floating"
- Mode="Input"
- Alternate="0" />
+ Mode="Alternate"
+ Alternate="12" />
<pin9
ID="SD_D0"
Type="PushPull"
diff --git a/readme.txt b/readme.txt
index cc09c8e6c..bb287a922 100644
--- a/readme.txt
+++ b/readme.txt
@@ -115,6 +115,8 @@
- EX: Updated LIS302DL to 1.1.0 (backported to 18.2.1).
- EX: Updated LPS25H to 1.1.0 (backported to 18.2.1).
- EX: Updated LSM303DLHC to 1.1.0 (backported to 18.2.1).
+- HAL: Fixed invalid settings in STM32F769I-Discovery board files (bug #942)
+ (backported to 18.2.1 and 17.6.5).
- OTH: Fixed short branch to _unhandled_exception in vectors.S (bug #941)
(backported to 18.2.1).
- HAL: Fixed IOBus PAL functions missing the const qualifier (bug #940)