diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-03-13 14:35:36 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-03-13 14:35:36 -0600 |
commit | 82ef332a97c62e60334173ed6e25020e1b03ead2 (patch) | |
tree | a726ffec2c7436850b0b1121b427582aeea0351c /nuttx/arch | |
parent | e1f201d538bb516259b6b7971abc085766f9643d (diff) | |
download | px4-nuttx-82ef332a97c62e60334173ed6e25020e1b03ead2.tar.gz px4-nuttx-82ef332a97c62e60334173ed6e25020e1b03ead2.tar.bz2 px4-nuttx-82ef332a97c62e60334173ed6e25020e1b03ead2.zip |
SAMV7 HSMCI: Change system bus interfaces seems to eliminate DMA failures.
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/arm/src/samv7/sam_hsmci.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/samv7/sam_hsmci.c b/nuttx/arch/arm/src/samv7/sam_hsmci.c index 35422d425..5db631f12 100644 --- a/nuttx/arch/arm/src/samv7/sam_hsmci.c +++ b/nuttx/arch/arm/src/samv7/sam_hsmci.c @@ -82,12 +82,14 @@ # error "HSMCI support requires CONFIG_SAMV7_XDMAC" #endif -/* System Bus Interfaces - * REVISIT: The SAMV71 supports only a single APB - */ +/* System Bus Interfaces */ -#define HSMCI_SYSBUS_IF DMACH_FLAG_PERIPHAHB_AHB_IF0 -#define MEMORY_SYSBUS_IF DMACH_FLAG_MEMAHB_AHB_IF0 +#ifdef CONFIG_ARCH_CHIP_SAMV71 +# define HSMCI_SYSBUS_IF DMACH_FLAG_PERIPHAHB_AHB_IF1 +# define MEMORY_SYSBUS_IF DMACH_FLAG_MEMAHB_AHB_IF0 +#else +# error Missing bus interface definitions +#endif #ifndef CONFIG_SCHED_WORKQUEUE # error "Callback support requires CONFIG_SCHED_WORKQUEUE" |