From 1f97428d5d6736c050d546a12837b19c48cfc99d Mon Sep 17 00:00:00 2001 From: barthess Date: Fri, 31 Oct 2014 02:51:00 +0300 Subject: FSMC. SDRAM. Fixed some typos --- os/hal/ports/STM32/LLD/FSMCv1/fsmc.c | 2 +- os/hal/ports/STM32/LLD/FSMCv1/fsmc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/os/hal/ports/STM32/LLD/FSMCv1/fsmc.c b/os/hal/ports/STM32/LLD/FSMCv1/fsmc.c index 6cadfb1..274bc62 100644 --- a/os/hal/ports/STM32/LLD/FSMCv1/fsmc.c +++ b/os/hal/ports/STM32/LLD/FSMCv1/fsmc.c @@ -106,7 +106,7 @@ void fsmc_init(void) { #if (defined(STM32F427xx) || defined(STM32F437xx) || \ defined(STM32F429xx) || defined(STM32F439xx)) - #if STM32_SDRAM_USE_FSMC_SDRAM1 + #if STM32_USE_FSMC_SDRAM FSMCD1.sdram = (FSMC_SDRAM_TypeDef *)FSMC_Bank5_6_R_BASE; #endif #endif diff --git a/os/hal/ports/STM32/LLD/FSMCv1/fsmc.h b/os/hal/ports/STM32/LLD/FSMCv1/fsmc.h index 4ca6e58..6ddd566 100644 --- a/os/hal/ports/STM32/LLD/FSMCv1/fsmc.h +++ b/os/hal/ports/STM32/LLD/FSMCv1/fsmc.h @@ -302,7 +302,7 @@ struct FSMCDriver { #endif #if (defined(STM32F427xx) || defined(STM32F437xx) || \ defined(STM32F429xx) || defined(STM32F439xx)) - #if (STM32_SDRAM_USE_FSMC_SDRAM1 || STM32_SDRAM_USE_FSMC_SDRAM1) + #if STM32_USE_FSMC_SDRAM FSMC_SDRAM_TypeDef *sdram; #endif #endif -- cgit v1.2.3