From a2f9bc469a30a16b125d7f1a01f9bd2fbfc7eeac Mon Sep 17 00:00:00 2001 From: barthess Date: Wed, 14 Oct 2015 17:46:40 +0300 Subject: FSMC code cleanup --- testhal/STM32/STM32F4xx/EICU/halconf_community.h | 7 +++ testhal/STM32/STM32F4xx/FSMC_NAND/.cproject | 43 ++++++++--------- testhal/STM32/STM32F4xx/FSMC_NAND/.project | 1 + .../STM32/STM32F4xx/FSMC_NAND/halconf_community.h | 7 +++ testhal/STM32/STM32F4xx/FSMC_SDRAM/.cproject | 43 ++++++++--------- testhal/STM32/STM32F4xx/FSMC_SDRAM/.project | 1 + .../STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h | 7 +++ testhal/STM32/STM32F4xx/FSMC_SRAM/.cproject | 43 ++++++++--------- testhal/STM32/STM32F4xx/FSMC_SRAM/.project | 1 + .../STM32/STM32F4xx/FSMC_SRAM/halconf_community.h | 7 +++ testhal/STM32/STM32F4xx/onewire/.cproject | 56 ++++++++-------------- testhal/STM32/STM32F4xx/onewire/.project | 1 + .../STM32/STM32F4xx/onewire/halconf_community.h | 7 +++ .../STM32/STM32F4xx/onewire/mcuconf_community.h | 5 -- 14 files changed, 123 insertions(+), 106 deletions(-) (limited to 'testhal/STM32/STM32F4xx') diff --git a/testhal/STM32/STM32F4xx/EICU/halconf_community.h b/testhal/STM32/STM32F4xx/EICU/halconf_community.h index 7d0cf5f..b6715f5 100644 --- a/testhal/STM32/STM32F4xx/EICU/halconf_community.h +++ b/testhal/STM32/STM32F4xx/EICU/halconf_community.h @@ -24,6 +24,13 @@ #define HAL_USE_COMMUNITY TRUE #endif +/** + * @brief Enables the NAND subsystem. + */ +#if !defined(HAL_USE_FSMC) || defined(__DOXYGEN__) +#define HAL_USE_FSMC FALSE +#endif + /** * @brief Enables the NAND subsystem. */ diff --git a/testhal/STM32/STM32F4xx/FSMC_NAND/.cproject b/testhal/STM32/STM32F4xx/FSMC_NAND/.cproject index 9dcfe77..d5451e0 100644 --- a/testhal/STM32/STM32F4xx/FSMC_NAND/.cproject +++ b/testhal/STM32/STM32F4xx/FSMC_NAND/.cproject @@ -1,36 +1,33 @@ - - + + - + + + - - - - - - - - - - - + + + + - diff --git a/testhal/STM32/STM32F4xx/FSMC_NAND/.project b/testhal/STM32/STM32F4xx/FSMC_NAND/.project index 63225d6..9dd1295 100644 --- a/testhal/STM32/STM32F4xx/FSMC_NAND/.project +++ b/testhal/STM32/STM32F4xx/FSMC_NAND/.project @@ -22,6 +22,7 @@ org.eclipse.cdt.core.cnature org.eclipse.cdt.managedbuilder.core.managedBuildNature org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + org.eclipse.cdt.core.ccnature diff --git a/testhal/STM32/STM32F4xx/FSMC_NAND/halconf_community.h b/testhal/STM32/STM32F4xx/FSMC_NAND/halconf_community.h index bc09065..933d3ae 100644 --- a/testhal/STM32/STM32F4xx/FSMC_NAND/halconf_community.h +++ b/testhal/STM32/STM32F4xx/FSMC_NAND/halconf_community.h @@ -24,6 +24,13 @@ #define HAL_USE_COMMUNITY TRUE #endif +/** + * @brief Enables the NAND subsystem. + */ +#if !defined(HAL_USE_FSMC) || defined(__DOXYGEN__) +#define HAL_USE_FSMC TRUE +#endif + /** * @brief Enables the NAND subsystem. */ diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/.cproject b/testhal/STM32/STM32F4xx/FSMC_SDRAM/.cproject index f9f2751..eb50c83 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/.cproject +++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/.cproject @@ -1,36 +1,33 @@ - - + + - + + + - - - - - - - - - - - + + + + - diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/.project b/testhal/STM32/STM32F4xx/FSMC_SDRAM/.project index f6fd941..5f87dc8 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/.project +++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/.project @@ -22,6 +22,7 @@ org.eclipse.cdt.core.cnature org.eclipse.cdt.managedbuilder.core.managedBuildNature org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + org.eclipse.cdt.core.ccnature diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h b/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h index f18d5cf..933fc0f 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h +++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h @@ -24,6 +24,13 @@ #define HAL_USE_COMMUNITY TRUE #endif +/** + * @brief Enables the NAND subsystem. + */ +#if !defined(HAL_USE_FSMC) || defined(__DOXYGEN__) +#define HAL_USE_FSMC TRUE +#endif + /** * @brief Enables the NAND subsystem. */ diff --git a/testhal/STM32/STM32F4xx/FSMC_SRAM/.cproject b/testhal/STM32/STM32F4xx/FSMC_SRAM/.cproject index 9ba3e1a..64d4678 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SRAM/.cproject +++ b/testhal/STM32/STM32F4xx/FSMC_SRAM/.cproject @@ -1,36 +1,33 @@ - - + + - + + + - - - - - - - - - - - + + + + - diff --git a/testhal/STM32/STM32F4xx/FSMC_SRAM/.project b/testhal/STM32/STM32F4xx/FSMC_SRAM/.project index dd8ba3a..38b4c10 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SRAM/.project +++ b/testhal/STM32/STM32F4xx/FSMC_SRAM/.project @@ -22,6 +22,7 @@ org.eclipse.cdt.core.cnature org.eclipse.cdt.managedbuilder.core.managedBuildNature org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + org.eclipse.cdt.core.ccnature diff --git a/testhal/STM32/STM32F4xx/FSMC_SRAM/halconf_community.h b/testhal/STM32/STM32F4xx/FSMC_SRAM/halconf_community.h index 5eecb56..e15f68d 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SRAM/halconf_community.h +++ b/testhal/STM32/STM32F4xx/FSMC_SRAM/halconf_community.h @@ -24,6 +24,13 @@ #define HAL_USE_COMMUNITY TRUE #endif +/** + * @brief Enables the NAND subsystem. + */ +#if !defined(HAL_USE_FSMC) || defined(__DOXYGEN__) +#define HAL_USE_FSMC TRUE +#endif + /** * @brief Enables the NAND subsystem. */ diff --git a/testhal/STM32/STM32F4xx/onewire/.cproject b/testhal/STM32/STM32F4xx/onewire/.cproject index 0b8f6b3..f6e2450 100644 --- a/testhal/STM32/STM32F4xx/onewire/.cproject +++ b/testhal/STM32/STM32F4xx/onewire/.cproject @@ -1,49 +1,33 @@ - - + + - + + + - - - - - - - - - - - + + + + + + + + - - - + + - - - + + @@ -53,14 +37,16 @@ - + + + + - diff --git a/testhal/STM32/STM32F4xx/onewire/.project b/testhal/STM32/STM32F4xx/onewire/.project index 9b98906..30d6ff3 100644 --- a/testhal/STM32/STM32F4xx/onewire/.project +++ b/testhal/STM32/STM32F4xx/onewire/.project @@ -74,6 +74,7 @@ org.eclipse.cdt.core.cnature org.eclipse.cdt.managedbuilder.core.managedBuildNature org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + org.eclipse.cdt.core.ccnature diff --git a/testhal/STM32/STM32F4xx/onewire/halconf_community.h b/testhal/STM32/STM32F4xx/onewire/halconf_community.h index f106d57..a5b50db 100644 --- a/testhal/STM32/STM32F4xx/onewire/halconf_community.h +++ b/testhal/STM32/STM32F4xx/onewire/halconf_community.h @@ -24,6 +24,13 @@ #define HAL_USE_COMMUNITY TRUE #endif +/** + * @brief Enables the NAND subsystem. + */ +#if !defined(HAL_USE_FSMC) || defined(__DOXYGEN__) +#define HAL_USE_FSMC FALSE +#endif + /** * @brief Enables the NAND subsystem. */ diff --git a/testhal/STM32/STM32F4xx/onewire/mcuconf_community.h b/testhal/STM32/STM32F4xx/onewire/mcuconf_community.h index 1acd3de..4a13b56 100644 --- a/testhal/STM32/STM32F4xx/onewire/mcuconf_community.h +++ b/testhal/STM32/STM32F4xx/onewire/mcuconf_community.h @@ -39,11 +39,6 @@ #define STM32_SRAM_USE_FSMC_SRAM3 FLASE #define STM32_SRAM_USE_FSMC_SRAM4 FALSE -/* - * FSMC PC card driver system settings. - */ -#define STM32_USE_FSMC_PCARD FALSE - /* * FSMC SDRAM driver system settings. */ -- cgit v1.2.3