aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorisiora <none@example.com>2018-01-04 15:41:10 +0000
committerisiora <none@example.com>2018-01-04 15:41:10 +0000
commit68f26d33eedccf4c845c1ec4ad5d1db1da3927eb (patch)
treeb52b8d58ca118fe63a92028c7c87cbd8d86e61aa
parent6a1ce8b72583fb10045abd125b91e77594bf5fa3 (diff)
downloadChibiOS-68f26d33eedccf4c845c1ec4ad5d1db1da3927eb.tar.gz
ChibiOS-68f26d33eedccf4c845c1ec4ad5d1db1da3927eb.tar.bz2
ChibiOS-68f26d33eedccf4c845c1ec4ad5d1db1da3927eb.zip
Fixed mtxRegionXXX macros.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11224 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/ports/SAMA/SAMA5D2x/sama_matrix.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/sama_matrix.h b/os/hal/ports/SAMA/SAMA5D2x/sama_matrix.h
index aa18720a8..7a58e9126 100644
--- a/os/hal/ports/SAMA/SAMA5D2x/sama_matrix.h
+++ b/os/hal/ports/SAMA/SAMA5D2x/sama_matrix.h
@@ -256,7 +256,7 @@
*
* @api
*/
-#define mtxRegionRdnsech(region, rdnsech) (rdnsech << region)
+#define mtxRegionRdnsech(region, rdnsech) ((rdnsech << 8) << region)
/**
* @brief Configure WRNSECH per Region.
@@ -266,7 +266,7 @@
*
* @api
*/
-#define mtxRegionWrnsech(region, wrnsech) (wrnsech << region)
+#define mtxRegionWrnsech(region, wrnsech) ((wrnsech << 16) << region)
/*===========================================================================*/
/* External declarations. */