mirror of https://github.com/rusefi/ChibiOS.git
Fixed warning with Keil compiler.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3815 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
eb9622aa4a
commit
184897394e
|
@ -54,7 +54,7 @@
|
||||||
* nibble
|
* nibble
|
||||||
* @return Returns the channel associated to the stream.
|
* @return Returns the channel associated to the stream.
|
||||||
*/
|
*/
|
||||||
#define STM32_DMA_GETCHANNEL(id, c) ((c) >> (((id) & 7) * 4))
|
#define STM32_DMA_GETCHANNEL(id, c) (((c) >> (((id) & 7) * 4)) & 7)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns an unique numeric identifier for a DMA stream.
|
* @brief Returns an unique numeric identifier for a DMA stream.
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
* nibble
|
* nibble
|
||||||
* @return Returns the channel associated to the stream.
|
* @return Returns the channel associated to the stream.
|
||||||
*/
|
*/
|
||||||
#define STM32_DMA_GETCHANNEL(id, c) ((c) >> (((id) & 7) * 4))
|
#define STM32_DMA_GETCHANNEL(id, c) (((c) >> (((id) & 7) * 4)) & 7)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns an unique numeric identifier for a DMA stream.
|
* @brief Returns an unique numeric identifier for a DMA stream.
|
||||||
|
|
Loading…
Reference in New Issue