Minor changes in XDMAC driver

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10683 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
edolomb 2017-09-22 14:27:32 +00:00
parent 2c47e89a88
commit d6f80d88f4
1 changed files with 6 additions and 6 deletions

View File

@ -230,7 +230,7 @@ typedef struct {
*/
#define dmaChannelDisable(dmachp) { \
(dmachp)->xdmac->XDMAC_GD |= XDMAC_GD_DI0 << ((dmachp)->chid); \
while ((dmachp)->xdmac->XDMAC_GS == (XDMAC_GS_ST0 << (dmachp)->chid)) { \
while (((dmachp)->xdmac->XDMAC_GS) & (XDMAC_GS_ST0 << (dmachp)->chid)) == 1) { \
; \
} \
dmaGetChannelInt(dmachp); \