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
 v6m/v7m only support a unified MPU (IREGION always 0) More...
 
#define MPU_TYPE_IREGION   (0xFF << MPU_TYPE_IREGION_LSB)
 
#define MPU_TYPE_DREGION_LSB   8
 DREGION is non zero if the MPU is available. More...
 
#define MPU_TYPE_DREGION   (0xFF << MPU_TYPE_DREGION_LSB)
 
#define MPU_TYPE_SEPARATE   (1<<0)
 v6m/v7m only support a unifed MPU (Separate always 0) 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)

Definition at line 68 of file mpu.h.

◆ MPU_TYPE_DREGION_LSB

#define MPU_TYPE_DREGION_LSB   8

DREGION is non zero if the MPU is available.

Definition at line 67 of file mpu.h.

◆ MPU_TYPE_IREGION

#define MPU_TYPE_IREGION   (0xFF << MPU_TYPE_IREGION_LSB)

Definition at line 65 of file mpu.h.

◆ MPU_TYPE_IREGION_LSB

#define MPU_TYPE_IREGION_LSB   16

v6m/v7m only support a unified MPU (IREGION always 0)

Definition at line 64 of file mpu.h.

◆ MPU_TYPE_SEPARATE

#define MPU_TYPE_SEPARATE   (1<<0)

v6m/v7m only support a unifed MPU (Separate always 0)

Definition at line 70 of file mpu.h.