DMA. Fixed possible overflow in DMA priority.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3772 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
barthess 2012-01-08 21:20:41 +00:00
parent 340385485a
commit 4817e5d814
4 changed files with 4 additions and 4 deletions

View File

@ -146,7 +146,7 @@
#define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \ #define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \
STM32_DMA_CR_MSIZE_MASK) STM32_DMA_CR_MSIZE_MASK)
#define STM32_DMA_CR_PL_MASK DMA_CCR1_PL #define STM32_DMA_CR_PL_MASK DMA_CCR1_PL
#define STM32_DMA_CR_PL(n) ((n) << 12) #define STM32_DMA_CR_PL(n) (((n) << 12) & (STM32_DMA_CR_PL_MASK))
/** @} */ /** @} */
/** /**

View File

@ -144,7 +144,7 @@
#define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \ #define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \
STM32_DMA_CR_MSIZE_MASK) STM32_DMA_CR_MSIZE_MASK)
#define STM32_DMA_CR_PL_MASK DMA_SxCR_PL #define STM32_DMA_CR_PL_MASK DMA_SxCR_PL
#define STM32_DMA_CR_PL(n) ((n) << 16) #define STM32_DMA_CR_PL(n) (((n) << 16) & (STM32_DMA_CR_PL_MASK))
/** @} */ /** @} */
/** /**

View File

@ -144,7 +144,7 @@
#define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \ #define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \
STM32_DMA_CR_MSIZE_MASK) STM32_DMA_CR_MSIZE_MASK)
#define STM32_DMA_CR_PL_MASK DMA_SxCR_PL #define STM32_DMA_CR_PL_MASK DMA_SxCR_PL
#define STM32_DMA_CR_PL(n) ((n) << 16) #define STM32_DMA_CR_PL(n) (((n) << 16) & (STM32_DMA_CR_PL_MASK))
/** @} */ /** @} */
/** /**

View File

@ -137,7 +137,7 @@
#define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \ #define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \
STM32_DMA_CR_MSIZE_MASK) STM32_DMA_CR_MSIZE_MASK)
#define STM32_DMA_CR_PL_MASK DMA_CCR1_PL #define STM32_DMA_CR_PL_MASK DMA_CCR1_PL
#define STM32_DMA_CR_PL(n) ((n) << 12) #define STM32_DMA_CR_PL(n) (((n) << 12) & (STM32_DMA_CR_PL_MASK))
/** @} */ /** @} */
/** /**