git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13044 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2019-09-29 11:18:43 +00:00
parent 40c9ee7c73
commit 4456dca621
1 changed files with 1 additions and 2 deletions

View File

@ -102,8 +102,7 @@
* @return An unique numeric stream identifier. * @return An unique numeric stream identifier.
*/ */
#define STM32_DMA_STREAM_ID(dma, stream) \ #define STM32_DMA_STREAM_ID(dma, stream) \
((((uint32_t)(dma) - 1U) * (uint32_t)STM32_DMA1_NUM_CHANNELS) + \ ((((dma) - 1) * STM32_DMA1_NUM_CHANNELS) + ((stream) - 1))
((uint32_t)(stream) - 1U))
/** /**
* @brief Returns a DMA stream identifier mask. * @brief Returns a DMA stream identifier mask.