aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sram.c
diff options
context:
space:
mode:
authorAdrian <af@coda.pw>2018-01-31 09:55:38 +0100
committerAdrian <af@coda.pw>2018-01-31 09:55:38 +0100
commit90b7d6bbd03deead3d6bd6c8e334d6dfdd195feb (patch)
tree01cff32511179946a3e1471e9fb5b8c1bd907e6f /os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sram.c
parentb5321c7e0ef470ed2dbb50dc1322c1252dea2d50 (diff)
downloadChibiOS-Contrib-90b7d6bbd03deead3d6bd6c8e334d6dfdd195feb.tar.gz
ChibiOS-Contrib-90b7d6bbd03deead3d6bd6c8e334d6dfdd195feb.tar.bz2
ChibiOS-Contrib-90b7d6bbd03deead3d6bd6c8e334d6dfdd195feb.zip
Added support for STM32F7
Tested only for STM32F746, other chipsets have to be checked.
Diffstat (limited to 'os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sram.c')
-rw-r--r--os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sram.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sram.c b/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sram.c
index fbd6f56..da13ca5 100644
--- a/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sram.c
+++ b/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sram.c
@@ -148,7 +148,10 @@ void fsmcSramStop(SRAMDriver *sramp) {
uint32_t mask = FSMC_BCR_MBKEN;
#if (defined(STM32F427xx) || defined(STM32F437xx) || \
defined(STM32F429xx) || defined(STM32F439xx) || \
- defined(STM32F7))
+ defined(STM32F745xx) || defined(STM32F746xx) || \
+ defined(STM32F756xx) || defined(STM32F767xx) || \
+ defined(STM32F769xx) || defined(STM32F777xx) || \
+ defined(STM32F779xx))
mask |= FSMC_BCR_CCLKEN;
#endif
sramp->sram->BCR &= ~mask;