|
1 | 1 | /******************************************************************************
|
2 | 2 | * @file mpu_armv7.h
|
3 | 3 | * @brief CMSIS MPU API for Armv7-M MPU
|
4 |
| - * @version V5.0.4 |
5 |
| - * @date 10. January 2018 |
| 4 | + * @version V5.0.5 |
| 5 | + * @date 06. September 2018 |
6 | 6 | ******************************************************************************/
|
7 | 7 | /*
|
8 | 8 | * Copyright (c) 2017-2018 Arm Limited. All rights reserved.
|
|
86 | 86 | * \param IsBufferable Region is bufferable, i.e. using write-back caching. Cacheable but non-bufferable regions use write-through policy.
|
87 | 87 | */
|
88 | 88 | #define ARM_MPU_ACCESS_(TypeExtField, IsShareable, IsCacheable, IsBufferable) \
|
89 |
| - ((((TypeExtField ) << MPU_RASR_TEX_Pos) & MPU_RASR_TEX_Msk) | \ |
90 |
| - (((IsShareable ) << MPU_RASR_S_Pos) & MPU_RASR_S_Msk) | \ |
91 |
| - (((IsCacheable ) << MPU_RASR_C_Pos) & MPU_RASR_C_Msk) | \ |
92 |
| - (((IsBufferable ) << MPU_RASR_B_Pos) & MPU_RASR_B_Msk)) |
| 89 | + ((((TypeExtField) << MPU_RASR_TEX_Pos) & MPU_RASR_TEX_Msk) | \ |
| 90 | + (((IsShareable) << MPU_RASR_S_Pos) & MPU_RASR_S_Msk) | \ |
| 91 | + (((IsCacheable) << MPU_RASR_C_Pos) & MPU_RASR_C_Msk) | \ |
| 92 | + (((IsBufferable) << MPU_RASR_B_Pos) & MPU_RASR_B_Msk)) |
93 | 93 |
|
94 | 94 | /**
|
95 | 95 | * MPU Region Attribute and Size Register Value
|
|
100 | 100 | * \param SubRegionDisable Sub-region disable field.
|
101 | 101 | * \param Size Region size of the region to be configured, for example 4K, 8K.
|
102 | 102 | */
|
103 |
| -#define ARM_MPU_RASR_EX(DisableExec, AccessPermission, AccessAttributes, SubRegionDisable, Size) \ |
104 |
| - ((((DisableExec ) << MPU_RASR_XN_Pos) & MPU_RASR_XN_Msk) | \ |
105 |
| - (((AccessPermission) << MPU_RASR_AP_Pos) & MPU_RASR_AP_Msk) | \ |
106 |
| - (((AccessAttributes) ) & (MPU_RASR_TEX_Msk | MPU_RASR_S_Msk | MPU_RASR_C_Msk | MPU_RASR_B_Msk))) |
107 |
| - |
| 103 | +#define ARM_MPU_RASR_EX(DisableExec, AccessPermission, AccessAttributes, SubRegionDisable, Size) \ |
| 104 | + ((((DisableExec) << MPU_RASR_XN_Pos) & MPU_RASR_XN_Msk) | \ |
| 105 | + (((AccessPermission) << MPU_RASR_AP_Pos) & MPU_RASR_AP_Msk) | \ |
| 106 | + (((AccessAttributes) & (MPU_RASR_TEX_Msk | MPU_RASR_S_Msk | MPU_RASR_C_Msk | MPU_RASR_B_Msk))) | \ |
| 107 | + (((SubRegionDisable) << MPU_RASR_SRD_Pos) & MPU_RASR_SRD_Msk) | \ |
| 108 | + (((Size) << MPU_RASR_SIZE_Pos) & MPU_RASR_SIZE_Msk) | \ |
| 109 | + (((MPU_RASR_ENABLE_Msk)))) |
| 110 | + |
108 | 111 | /**
|
109 | 112 | * MPU Region Attribute and Size Register Value
|
110 | 113 | *
|
|
0 commit comments