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:
parent
2c47e89a88
commit
d6f80d88f4
|
@ -228,12 +228,12 @@ typedef struct {
|
|||
*
|
||||
* @special
|
||||
*/
|
||||
#define dmaChannelDisable(dmachp) { \
|
||||
(dmachp)->xdmac->XDMAC_GD |= XDMAC_GD_DI0 << ((dmachp)->chid); \
|
||||
while ((dmachp)->xdmac->XDMAC_GS == (XDMAC_GS_ST0 << (dmachp)->chid)) { \
|
||||
; \
|
||||
} \
|
||||
dmaGetChannelInt(dmachp); \
|
||||
#define dmaChannelDisable(dmachp) { \
|
||||
(dmachp)->xdmac->XDMAC_GD |= XDMAC_GD_DI0 << ((dmachp)->chid); \
|
||||
while (((dmachp)->xdmac->XDMAC_GS) & (XDMAC_GS_ST0 << (dmachp)->chid)) == 1) { \
|
||||
; \
|
||||
} \
|
||||
dmaGetChannelInt(dmachp); \
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue