aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-03-22 16:09:24 +0000
committeredolomb <none@example.com>2018-03-22 16:09:24 +0000
commitbbf069b3f359df9e7565ed5110e89805c4389712 (patch)
tree6d0d27780879d06af80c1ddd6dc79091143df599 /os
parentef83e007f110af0c1c9dd3874fc0b84f982960c9 (diff)
downloadChibiOS-bbf069b3f359df9e7565ed5110e89805c4389712.tar.gz
ChibiOS-bbf069b3f359df9e7565ed5110e89805c4389712.tar.bz2
ChibiOS-bbf069b3f359df9e7565ed5110e89805c4389712.zip
Fixed bug
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11835 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
index 4867b91e9..61ebe1fad 100644
--- a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
+++ b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
@@ -192,7 +192,7 @@ uint32_t divisor;
/* If n exceeds XDMAC_MAX_BT_SIZE, split the transfer in microblocks */
for (i = 2; i < XDMAC_MAX_BT_SIZE; i++) {
divisor = XDMAC_MAX_BT_SIZE / i;
- if (n % diviqsor)
+ if (n % divisor)
continue;
if ((n / divisor) <= (XDMAC_MAX_BLOCK_LEN + 1)) {
(dmachp)->xdmac->XDMAC_CHID[(dmachp)->chid].XDMAC_CUBC = XDMAC_CUBC_UBLEN(i);