aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-03-22 16:58:06 +0000
committeredolomb <none@example.com>2018-03-22 16:58:06 +0000
commit93d0d10676d81913a1583583f108cad8257dd6a6 (patch)
tree64eb5f1436faa7543643ee6dae716326170dc512 /os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h
parentbbf069b3f359df9e7565ed5110e89805c4389712 (diff)
downloadChibiOS-93d0d10676d81913a1583583f108cad8257dd6a6.tar.gz
ChibiOS-93d0d10676d81913a1583583f108cad8257dd6a6.tar.bz2
ChibiOS-93d0d10676d81913a1583583f108cad8257dd6a6.zip
Fixed bug
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11836 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h')
-rw-r--r--os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h
index 1f0921903..e562c24f3 100644
--- a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h
+++ b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.h
@@ -278,8 +278,8 @@ typedef struct {
* @param[in] dmachp pointer to a sama_dma_channel_t structure
*/
#define dmaWaitCompletion(dmachp) { \
- (dmachp)->xdmac->XDMAC_GID |= XDMAC_GID_ID0 << ((dmachp)->chid)); \
- while ((dmachp)->xdmac->XDMAC_GS & (XDMAC_GS_ST0 << ((dmachp)->chid)))) \
+ (dmachp)->xdmac->XDMAC_GID |= XDMAC_GID_ID0 << ((dmachp)->chid); \
+ while ((dmachp)->xdmac->XDMAC_GS & (XDMAC_GS_ST0 << ((dmachp)->chid))) \
; \
dmaGetChannelInt(dmachp); \
}