aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authoredolomb <none@example.com>2017-09-22 14:27:32 +0000
committeredolomb <none@example.com>2017-09-22 14:27:32 +0000
commitd6f80d88f4399fd26ff71c2079ed5482eb9624c5 (patch)
tree2244365c459c80940a8b1c6f538e687f1de7d0a2 /os/hal
parent2c47e89a8866359d30c916cdb3a6ff12368ecf3f (diff)
downloadChibiOS-d6f80d88f4399fd26ff71c2079ed5482eb9624c5.tar.gz
ChibiOS-d6f80d88f4399fd26ff71c2079ed5482eb9624c5.tar.bz2
ChibiOS-d6f80d88f4399fd26ff71c2079ed5482eb9624c5.zip
Minor changes in XDMAC driver
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10683 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h
index 96c11b479..609021e00 100644
--- a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h
+++ b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h
@@ -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); \
}
/**