You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/06/06 15:05:41 UTC
[incubator-nuttx] 02/02: stm32h7:SPI Locate SPI6 DMA buffers in
sram4
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit a254023e74cbfa0ff97bb836497f93835a22ffbf
Author: David Sidrane <Da...@NscDg.com>
AuthorDate: Fri Jun 5 12:03:26 2020 -0700
stm32h7:SPI Locate SPI6 DMA buffers in sram4
---
arch/arm/src/stm32h7/stm32_spi.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/arch/arm/src/stm32h7/stm32_spi.c b/arch/arm/src/stm32h7/stm32_spi.c
index b7ae80a..268f220 100644
--- a/arch/arm/src/stm32h7/stm32_spi.c
+++ b/arch/arm/src/stm32h7/stm32_spi.c
@@ -57,6 +57,7 @@
#include <nuttx/irq.h>
#include <nuttx/arch.h>
+#include <nuttx/compiler.h>
#include <nuttx/semaphore.h>
#include <nuttx/spi/spi.h>
#include <nuttx/power/pm.h>
@@ -709,10 +710,11 @@ static const struct spi_ops_s g_sp6iops =
};
#if defined(SPI6_DMABUFSIZE_ADJUSTED)
-static uint8_t g_spi6_txbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN;
-static uint8_t g_spi6_rxbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN;
+static uint8_t g_spi6_txbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN
+ locate_data(".sram4");
+static uint8_t g_spi6_rxbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN
+ locate_data(".sram4");
#endif
-
static struct stm32_spidev_s g_spi6dev =
{
.spidev =