diff options
author | edolomb <none@example.com> | 2017-09-22 14:27:32 +0000 |
---|---|---|
committer | edolomb <none@example.com> | 2017-09-22 14:27:32 +0000 |
commit | d6f80d88f4399fd26ff71c2079ed5482eb9624c5 (patch) | |
tree | 2244365c459c80940a8b1c6f538e687f1de7d0a2 | |
parent | 2c47e89a8866359d30c916cdb3a6ff12368ecf3f (diff) | |
download | ChibiOS-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
-rw-r--r-- | os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h | 12 |
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); \
}
/**
|