DMA. Fixed possible overflow in DMA priority.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3772 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
340385485a
commit
4817e5d814
|
@ -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))
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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))
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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))
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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))
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue