STM32 F7: Fix some errors in some macro definitions

This commit is contained in:
Gregory Nutt 2015-07-20 15:29:32 -06:00
parent c1e1c5759d
commit 1edf465ef6
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit caf5f9e13807b065a4269593ba561c9dca8bc9fc
Subproject commit 044dc80d5c480f22cf582d7d01b0a85a876adece

View File

@ -235,8 +235,8 @@
*/
#define DMA_BUFFER_MASK (ARMV7M_DCACHE_LINESIZE - 1)
#define DMA_ALIGN_UP(n) (((n) + DMA_BUFFER_MASK) & ~ARMV7M_DCACHE_LINESIZE)
#define DMA_ALIGN_DOWBN(n) ((n) & ~ARMV7M_DCACHE_LINESIZE)
#define DMA_ALIGN_UP(n) (((n) + DMA_BUFFER_MASK) & ~DMA_BUFFER_MASK)
#define DMA_ALIGN_DOWN(n) ((n) & ~DMA_BUFFER_MASK)
#ifdef CONFIG_STM32F7_ETH_ENHANCEDDESC
# define RXDESC_SIZE 16