diff options
author | Uladzimir Pylinski <barthess@yandex.ru> | 2016-01-13 07:30:43 +0000 |
---|---|---|
committer | Uladzimir Pylinski <barthess@yandex.ru> | 2016-01-13 07:30:43 +0000 |
commit | 3c1abde16732c04c491d5dc421954209d87457aa (patch) | |
tree | 3c28ca5a8f8a07874eeae161f9f6d6e029b4b709 /os/hal/ports/STM32/STM32F4xx | |
parent | 3cb82507c2744f63e15cb9a947d2db18b0d4a383 (diff) | |
download | ChibiOS-3c1abde16732c04c491d5dc421954209d87457aa.tar.gz ChibiOS-3c1abde16732c04c491d5dc421954209d87457aa.tar.bz2 ChibiOS-3c1abde16732c04c491d5dc421954209d87457aa.zip |
[HAL, STM32F4xx, FSMC] Fixed build error caused by inproper handling of STM32_FSMC_IS_FMC flag.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8747 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F4xx')
-rw-r--r-- | os/hal/ports/STM32/STM32F4xx/stm32_rcc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h index 694febb60..d74d940fe 100644 --- a/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h @@ -1562,7 +1562,7 @@ *
* @api
*/
-#if defined(STM32_FSMC_IS_FMC)
+#if STM32_FSMC_IS_FMC
#define rccEnableFSMC(lp) rccEnableAHB3(RCC_AHB3ENR_FMCEN, lp)
#else
#define rccEnableFSMC(lp) rccEnableAHB3(RCC_AHB3ENR_FSMCEN, lp)
@@ -1575,7 +1575,7 @@ *
* @api
*/
-#if defined(STM32_FSMC_IS_FMC)
+#if STM32_FSMC_IS_FMC
#define rccDisableFSMC(lp) rccDisableAHB3(RCC_AHB3ENR_FMCEN, lp)
#else
#define rccDisableFSMC(lp) rccDisableAHB3(RCC_AHB3ENR_FSMCEN, lp)
@@ -1586,7 +1586,7 @@ *
* @api
*/
-#if defined(STM32_FSMC_IS_FMC)
+#if STM32_FSMC_IS_FMC
#define rccResetFSMC() rccResetAHB3(RCC_AHB3RSTR_FMCRST)
#else
#define rccResetFSMC() rccResetAHB3(RCC_AHB3RSTR_FSMCRST)
|