File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 32
32
#define ARM_MPU_ARMV8_H
33
33
34
34
/** \brief Attribute for device memory (outer only) */
35
- #define ARM_MPU_ATTR_DEVICE ( 0U )
35
+ #define ARM_MPU_ATTR_DEVICE ( 0U )
36
36
37
37
/** \brief Attribute for non-cacheable, normal memory */
38
- #define ARM_MPU_ATTR_NON_CACHEABLE ( 4U )
38
+ #define ARM_MPU_ATTR_NON_CACHEABLE ( 4U )
39
39
40
40
/** \brief Attribute for Normal memory, Outer and Inner cacheability.
41
41
* \param NT Non-Transient: Set to 1 for Non-transient data. Set to 0 for Transient data.
95
95
#define ARM_MPU_ATTR (O , I ) ((((O) & 0xFU) << 4U) | ((((O) & 0xFU) != 0U) ? ((I) & 0xFU) : (((I) & 0x3U) << 2U)))
96
96
97
97
/* \brief Specifies MAIR_ATTR number */
98
- #define MAIR_ATTR (x ) ((x > 7 || x < 0) ? 0 : x)
98
+ #define MAIR_ATTR (x ) ((x > 7 || x < 0) ? 0 : x)
99
99
100
100
/**
101
101
* Shareability
Original file line number Diff line number Diff line change @@ -33,10 +33,10 @@ int main()
33
33
*/
34
34
35
35
/** \brief Attribute for device memory (outer only) */
36
- #define ARM_MPU_ATTR_DEVICE ( 0U )
36
+ #define ARM_MPU_ATTR_DEVICE ( 0U )
37
37
38
38
/** \brief Attribute for non-cacheable, normal memory */
39
- #define ARM_MPU_ATTR_NON_CACHEABLE ( 4U )
39
+ #define ARM_MPU_ATTR_NON_CACHEABLE ( 4U )
40
40
41
41
/** \brief Attribute for Normal memory, Outer and Inner cacheability.
42
42
* \param NT Non-Transient: Set to 1 for Non-transient data. Set to 0 for Transient data.
@@ -172,7 +172,7 @@ typedef struct {
172
172
\brief Read MPU Type Register
173
173
\return Number of MPU regions
174
174
*/
175
- __STATIC_INLINE uint32_t ARM_MPU_TYPE()
175
+ __STATIC_INLINE uint32_t ARM_MPU_TYPE(void);
176
176
177
177
/** Enable the MPU.
178
178
* \param MPU_Control Default access permissions for unconfigured regions.
You can’t perform that action at this time.
0 commit comments