libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
MPU TYPE register fields

The MPU_TYPE register is always available, even if the MPU is not implemented. More...

Collaboration diagram for MPU TYPE register fields:

Macros

#define MPU_TYPE_IREGION_LSB   16
 
#define MPU_TYPE_IREGION   (0xFF << MPU_TYPE_IREGION_LSB)
 Number of protected instruction regions; always 0 on v6m/v7m. More...
 
#define MPU_TYPE_DREGION_LSB   8
 
#define MPU_TYPE_DREGION   (0xFF << MPU_TYPE_DREGION_LSB)
 Number of protected data regions. More...
 
#define MPU_TYPE_SEPARATE   (1<<0)
 Indicates if instruction regions are separate from data regions; always 0 on v6m/v7m. More...
 

Detailed Description

The MPU_TYPE register is always available, even if the MPU is not implemented.

In that case, the DREGION field will read as 0.

Macro Definition Documentation

◆ MPU_TYPE_DREGION

#define MPU_TYPE_DREGION   (0xFF << MPU_TYPE_DREGION_LSB)

Number of protected data regions.

Definition at line 66 of file mpu.h.

◆ MPU_TYPE_DREGION_LSB

#define MPU_TYPE_DREGION_LSB   8

Definition at line 65 of file mpu.h.

◆ MPU_TYPE_IREGION

#define MPU_TYPE_IREGION   (0xFF << MPU_TYPE_IREGION_LSB)

Number of protected instruction regions; always 0 on v6m/v7m.

Definition at line 64 of file mpu.h.

◆ MPU_TYPE_IREGION_LSB

#define MPU_TYPE_IREGION_LSB   16

Definition at line 63 of file mpu.h.

◆ MPU_TYPE_SEPARATE

#define MPU_TYPE_SEPARATE   (1<<0)

Indicates if instruction regions are separate from data regions; always 0 on v6m/v7m.

Definition at line 67 of file mpu.h.