aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUladzimir Pylinski <barthess@yandex.ru>2017-12-15 21:12:39 +0300
committerGitHub <noreply@github.com>2017-12-15 21:12:39 +0300
commitb5321c7e0ef470ed2dbb50dc1322c1252dea2d50 (patch)
treef59dc21aa0a781f71f31c0042daea6dcb5d77858
parentec4b244c514282d295feb99dd55e26f10d9bd4fc (diff)
parent5cc37ffd322f4b699eaa488dd467741ef2bab054 (diff)
downloadChibiOS-Contrib-b5321c7e0ef470ed2dbb50dc1322c1252dea2d50.tar.gz
ChibiOS-Contrib-b5321c7e0ef470ed2dbb50dc1322c1252dea2d50.tar.bz2
ChibiOS-Contrib-b5321c7e0ef470ed2dbb50dc1322c1252dea2d50.zip
Merge pull request #137 from dflogeras/add-stm32f769-to-sdram
Add STM32F769 to FSMCv1 sdram driver
-rw-r--r--os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc.h2
-rw-r--r--os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.c3
-rw-r--r--os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.h3
3 files changed, 5 insertions, 3 deletions
diff --git a/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc.h b/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc.h
index 51b9428..2bc267f 100644
--- a/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc.h
+++ b/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc.h
@@ -36,7 +36,7 @@
*/
#if (defined(STM32F427xx) || defined(STM32F437xx) || \
defined(STM32F429xx) || defined(STM32F439xx) || \
- defined(STM32F7))
+ defined(STM32F769xx))
#if !defined(FSMC_Bank1_R_BASE)
#define FSMC_Bank1_R_BASE (FMC_R_BASE + 0x0000)
#endif
diff --git a/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.c b/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.c
index ac83477..ea1be4c 100644
--- a/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.c
+++ b/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.c
@@ -28,7 +28,8 @@
#include "hal.h"
#if (defined(STM32F427xx) || defined(STM32F437xx) || \
- defined(STM32F429xx) || defined(STM32F439xx))
+ defined(STM32F429xx) || defined(STM32F439xx) || \
+ defined(STM32F769xx))
#if (STM32_USE_FSMC_SDRAM == TRUE) || defined(__DOXYGEN__)
diff --git a/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.h b/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.h
index b419168..fdf3268 100644
--- a/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.h
+++ b/os/hal/ports/STM32/LLD/FSMCv1/hal_fsmc_sdram.h
@@ -29,7 +29,8 @@
#define HAL_FMC_SDRAM_H_
#if (defined(STM32F427xx) || defined(STM32F437xx) || \
- defined(STM32F429xx) || defined(STM32F439xx))
+ defined(STM32F429xx) || defined(STM32F439xx) || \
+ defined(STM32F769xx))
#include "hal_fsmc.h"