diff options
author | barthess <barthess@yandex.ru> | 2014-10-24 21:46:17 +0300 |
---|---|---|
committer | barthess <barthess@yandex.ru> | 2014-10-24 21:46:17 +0300 |
commit | e9f9ddaa12464a5706617814d2244b0937cdf9fc (patch) | |
tree | f5333b295a7e0501d3631246b6983a443c1664ae /os/hal/ports/STM32/LLD/FSMCv1/fsmc.c | |
parent | 5f231b6aaf4f3506b462faed77db0b3a5595d918 (diff) | |
download | ChibiOS-Contrib-e9f9ddaa12464a5706617814d2244b0937cdf9fc.tar.gz ChibiOS-Contrib-e9f9ddaa12464a5706617814d2244b0937cdf9fc.tar.bz2 ChibiOS-Contrib-e9f9ddaa12464a5706617814d2244b0937cdf9fc.zip |
FSMC. SDRAM architecture reworked. Needs review.
Diffstat (limited to 'os/hal/ports/STM32/LLD/FSMCv1/fsmc.c')
-rw-r--r-- | os/hal/ports/STM32/LLD/FSMCv1/fsmc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/os/hal/ports/STM32/LLD/FSMCv1/fsmc.c b/os/hal/ports/STM32/LLD/FSMCv1/fsmc.c index 65f3baf..6cadfb1 100644 --- a/os/hal/ports/STM32/LLD/FSMCv1/fsmc.c +++ b/os/hal/ports/STM32/LLD/FSMCv1/fsmc.c @@ -107,11 +107,7 @@ void fsmc_init(void) { #if (defined(STM32F427xx) || defined(STM32F437xx) || \ defined(STM32F429xx) || defined(STM32F439xx)) #if STM32_SDRAM_USE_FSMC_SDRAM1 - FSMCD1.sdram1 = (FSMC_SDRAM_TypeDef *)FSMC_Bank5_R_BASE; - #endif - - #if STM32_SDRAM_USE_FSMC_SDRAM2 - FSMCD1.sdram2 = (FSMC_SDRAM_TypeDef *)FSMC_Bank6_R_BASE; + FSMCD1.sdram = (FSMC_SDRAM_TypeDef *)FSMC_Bank5_6_R_BASE; #endif #endif } |