Fixed mtxRegionXXX macros.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11224 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
isiora 2018-01-04 15:41:10 +00:00
parent 6a1ce8b725
commit 68f26d33ee
1 changed files with 2 additions and 2 deletions

View File

@ -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. */