aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authorFabien Poussin <fabien.poussin@gmail.com>2019-10-29 19:38:09 +0100
committerFabien Poussin <fabien.poussin@gmail.com>2019-10-29 19:38:09 +0100
commit97b7064031ed2be5980a59cdab8174a9074febb4 (patch)
tree5fe089a3cf0fb266b87b64d77f1d8fb7c83fb8bd /testhal
parent63bc192217dace785a3606fb8a762e723ec3aa4c (diff)
downloadChibiOS-Contrib-97b7064031ed2be5980a59cdab8174a9074febb4.tar.gz
ChibiOS-Contrib-97b7064031ed2be5980a59cdab8174a9074febb4.tar.bz2
ChibiOS-Contrib-97b7064031ed2be5980a59cdab8174a9074febb4.zip
Updating FSMC driver (SDRAM part first)
Diffstat (limited to 'testhal')
-rw-r--r--testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h18
-rw-r--r--testhal/STM32/STM32F4xx/FSMC_SDRAM/main.c1
-rw-r--r--testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h26
3 files changed, 28 insertions, 17 deletions
diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h b/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h
index da9c607..d1d3ada 100644
--- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h
+++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/halconf_community.h
@@ -27,8 +27,22 @@
/**
* @brief Enables the FSMC subsystem.
*/
-#if !defined(HAL_USE_FSMC) || defined(__DOXYGEN__)
-#define HAL_USE_FSMC TRUE
+#if !defined(HAL_USE_FSMC_SDRAM) || defined(__DOXYGEN__)
+#define HAL_USE_FSMC_SDRAM TRUE
+#endif
+
+/**
+ * @brief Enables the FSMC subsystem.
+ */
+#if !defined(HAL_USE_FSMC_SRAM) || defined(__DOXYGEN__)
+#define HAL_USE_FSMC_SRAM FALSE
+#endif
+
+/**
+ * @brief Enables the FSMC subsystem.
+ */
+#if !defined(HAL_USE_FSMC_NAND) || defined(__DOXYGEN__)
+#define HAL_USE_FSMC_NAND FALSE
#endif
/**
diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/main.c b/testhal/STM32/STM32F4xx/FSMC_SDRAM/main.c
index 1ec34d2..45e8db6 100644
--- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/main.c
+++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/main.c
@@ -23,7 +23,6 @@
#include "string.h"
-#include "hal_fsmc_sdram.h"
#include "membench.h"
#include "memtest.h"
diff --git a/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h b/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h
index c8d995f..4494929 100644
--- a/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h
+++ b/testhal/STM32/STM32F4xx/FSMC_SDRAM/mcuconf_community.h
@@ -22,32 +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_NAND_USE_FSMC_NAND1 FALSE
-#define STM32_NAND_USE_FSMC_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")
+#define STM32_FSMC_USE_NAND1 FALSE
+#define STM32_FSMC_USE_NAND2 FALSE
+#define STM32_FSMC_USE_NAND_EXT_INT FALSE
/*
* FSMC SRAM driver system settings.
*/
-#define STM32_USE_FSMC_SRAM FALSE
-#define STM32_SRAM_USE_FSMC_SRAM1 FALSE
-#define STM32_SRAM_USE_FSMC_SRAM2 FALSE
-#define STM32_SRAM_USE_FSMC_SRAM3 FALSE
-#define STM32_SRAM_USE_FSMC_SRAM4 FALSE
+#define STM32_FSMC_USE_SRAM1 FALSE
+#define STM32_FSMC_USE_SRAM2 FALSE
+#define STM32_FSMC_USE_SRAM3 FALSE
+#define STM32_FSMC_USE_SRAM4 FALSE
/*
* FSMC SDRAM driver system settings.
*/
-#define STM32_USE_FSMC_SDRAM TRUE
-#define STM32_SDRAM_USE_FSMC_SDRAM1 FALSE
-#define STM32_SDRAM_USE_FSMC_SDRAM2 TRUE
+#define STM32_FSMC_USE_SDRAM1 FALSE
+#define STM32_FSMC_USE_SDRAM2 TRUE
/*
* TIMCAP driver system settings.