Fixed masking error.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3774 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2012-01-09 08:49:58 +00:00
parent 725e8f6aa5
commit da38ec03db
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@
* nibble
* @return Returns the channel associated to the stream.
*/
#define STM32_DMA_GETCHANNEL(id, c) (((c) & 15) >> (((id) & 7) * 4))
#define STM32_DMA_GETCHANNEL(id, c) ((c) >> (((id) & 7) * 4))
/**
* @brief Returns an unique numeric identifier for a DMA stream.

View File

@ -54,7 +54,7 @@
* nibble
* @return Returns the channel associated to the stream.
*/
#define STM32_DMA_GETCHANNEL(id, c) (((c) & 15) >> (((id) & 7) * 4))
#define STM32_DMA_GETCHANNEL(id, c) ((c) >> (((id) & 7) * 4))
/**
* @brief Returns an unique numeric identifier for a DMA stream.