diff options
-rw-r--r-- | os/hal/ports/SAMA/SAMA5D2x/sama_matrix.h | 4 |
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. */ |