Skip to content

Commit bb6bd09

Browse files
author
Miłosz Plichta
committed
Fixing docs and spacing
1 parent a75f017 commit bb6bd09

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CMSIS/Core/Include/mpu_armv8.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
#define ARM_MPU_ARMV8_H
3333

3434
/** \brief Attribute for device memory (outer only) */
35-
#define ARM_MPU_ATTR_DEVICE ( 0U )
35+
#define ARM_MPU_ATTR_DEVICE ( 0U )
3636

3737
/** \brief Attribute for non-cacheable, normal memory */
38-
#define ARM_MPU_ATTR_NON_CACHEABLE ( 4U )
38+
#define ARM_MPU_ATTR_NON_CACHEABLE ( 4U )
3939

4040
/** \brief Attribute for Normal memory, Outer and Inner cacheability.
4141
* \param NT Non-Transient: Set to 1 for Non-transient data. Set to 0 for Transient data.
@@ -95,7 +95,7 @@
9595
#define ARM_MPU_ATTR(O, I) ((((O) & 0xFU) << 4U) | ((((O) & 0xFU) != 0U) ? ((I) & 0xFU) : (((I) & 0x3U) << 2U)))
9696

9797
/* \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)
9999

100100
/**
101101
* Shareability

CMSIS/DoxyGen/Core/src/Ref_MPU8.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ int main()
3333
*/
3434

3535
/** \brief Attribute for device memory (outer only) */
36-
#define ARM_MPU_ATTR_DEVICE ( 0U )
36+
#define ARM_MPU_ATTR_DEVICE ( 0U )
3737

3838
/** \brief Attribute for non-cacheable, normal memory */
39-
#define ARM_MPU_ATTR_NON_CACHEABLE ( 4U )
39+
#define ARM_MPU_ATTR_NON_CACHEABLE ( 4U )
4040

4141
/** \brief Attribute for Normal memory, Outer and Inner cacheability.
4242
* \param NT Non-Transient: Set to 1 for Non-transient data. Set to 0 for Transient data.
@@ -172,7 +172,7 @@ typedef struct {
172172
\brief Read MPU Type Register
173173
\return Number of MPU regions
174174
*/
175-
__STATIC_INLINE uint32_t ARM_MPU_TYPE()
175+
__STATIC_INLINE uint32_t ARM_MPU_TYPE(void);
176176

177177
/** Enable the MPU.
178178
* \param MPU_Control Default access permissions for unconfigured regions.

0 commit comments

Comments
 (0)