git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13044 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
40c9ee7c73
commit
4456dca621
|
@ -102,8 +102,7 @@
|
|||
* @return An unique numeric stream identifier.
|
||||
*/
|
||||
#define STM32_DMA_STREAM_ID(dma, stream) \
|
||||
((((uint32_t)(dma) - 1U) * (uint32_t)STM32_DMA1_NUM_CHANNELS) + \
|
||||
((uint32_t)(stream) - 1U))
|
||||
((((dma) - 1) * STM32_DMA1_NUM_CHANNELS) + ((stream) - 1))
|
||||
|
||||
/**
|
||||
* @brief Returns a DMA stream identifier mask.
|
||||
|
|
Loading…
Reference in New Issue