aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/FSMC_SDRAM
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F4xx/FSMC_SDRAM')
-rw-r--r--testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h22
-rw-r--r--testhal/STM32/STM32F4xx/FSMC_SDRAM/main.c4
-rw-r--r--testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h24
3 files changed, 28 insertions, 22 deletions
diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h b/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h
index 9ad41fd..91ad637 100644
--- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h
+++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h
@@ -27,25 +27,31 @@
/**
* @brief Enables the FSMC subsystem.
*/
-#if !defined(HAL_USE_FSMC_SDRAM) || defined(__DOXYGEN__)
-#define HAL_USE_FSMC_SDRAM TRUE
+#if !defined(HAL_USE_FSMC) || defined(__DOXYGEN__)
+#define HAL_USE_FSMC TRUE
#endif
/**
- * @brief Enables the FSMC subsystem.
+ * @brief Enables the SDRAM subsystem.
*/
-#if !defined(HAL_USE_FSMC_SRAM) || defined(__DOXYGEN__)
-#define HAL_USE_FSMC_SRAM FALSE
+#if !defined(HAL_USE_SDRAM) || defined(__DOXYGEN__)
+#define HAL_USE_SDRAM TRUE
#endif
/**
- * @brief Enables the FSMC subsystem.
+ * @brief Enables the SRAM subsystem.
*/
-#if !defined(HAL_USE_FSMC_NAND) || defined(__DOXYGEN__)
-#define HAL_USE_FSMC_NAND FALSE
+#if !defined(HAL_USE_SRAM) || defined(__DOXYGEN__)
+#define HAL_USE_SRAM FALSE
#endif
/**
+ * @brief Enables the NAND subsystem.
+ */
+#if !defined(HAL_USE_NAND) || defined(__DOXYGEN__)
+#define HAL_USE_NAND FALSE
+#endif
+/**
* @brief Enables the 1-wire subsystem.
*/
#if !defined(HAL_USE_ONEWIRE) || defined(__DOXYGEN__)
diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/main.c b/testhal/STM32/STM32F4xx/FSMC_SDRAM/main.c
index 1ff7740..0d3feee 100644
--- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/main.c
+++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/main.c
@@ -183,8 +183,8 @@ int main(void) {
halInit();
chSysInit();
- fsmcSdramInit();
- fsmcSdramStart(&SDRAMD, &sdram_cfg);
+ sdramInit();
+ sdramStart(&SDRAMD1, &sdram_cfg);
membench();
memtest();
diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h b/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h
index 4494929..4e08dfe 100644
--- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h
+++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h
@@ -22,30 +22,30 @@
#define STM32_FSMC_USE_FSMC1 TRUE
#define STM32_FSMC_FSMC1_IRQ_PRIORITY 10
#define STM32_FSMC_DMA_CHN 0x03010201
-#define STM32_FSMC_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
-#define STM32_FSMC_DMA_PRIORITY 0
-#define STM32_FSMC_DMA_ERROR_HOOK(nandp) osalSysHalt("FSMC DMA failure")
/*
* FSMC NAND driver system settings.
*/
-#define STM32_FSMC_USE_NAND1 FALSE
-#define STM32_FSMC_USE_NAND2 FALSE
-#define STM32_FSMC_USE_NAND_EXT_INT FALSE
+#define STM32_NAND_USE_NAND1 FALSE
+#define STM32_NAND_USE_NAND2 FALSE
+#define STM32_NAND_USE_EXT_INT FALSE
+#define STM32_NAND_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
+#define STM32_NAND_DMA_PRIORITY 0
+#define STM32_NAND_DMA_ERROR_HOOK(nandp) osalSysHalt("DMA failure")
/*
* FSMC SRAM driver system settings.
*/
-#define STM32_FSMC_USE_SRAM1 FALSE
-#define STM32_FSMC_USE_SRAM2 FALSE
-#define STM32_FSMC_USE_SRAM3 FALSE
-#define STM32_FSMC_USE_SRAM4 FALSE
+#define STM32_SRAM_USE_SRAM1 FALSE
+#define STM32_SRAM_USE_SRAM2 FALSE
+#define STM32_SRAM_USE_SRAM3 FALSE
+#define STM32_SRAM_USE_SRAM4 FALSE
/*
* FSMC SDRAM driver system settings.
*/
-#define STM32_FSMC_USE_SDRAM1 FALSE
-#define STM32_FSMC_USE_SDRAM2 TRUE
+#define STM32_SDRAM_USE_SDRAM1 FALSE
+#define STM32_SDRAM_USE_SDRAM2 TRUE
/*
* TIMCAP driver system settings.