27typedef enum { MPU_REGION_0, MPU_REGION_1, MPU_REGION_2, MPU_REGION_3, MPU_REGION_4, MPU_REGION_5, MPU_REGION_6, MPU_REGION_7, NUM_MPU_REGIONS } MPURegionNumber;
32 MPU_ACCESS_PRIV_RW_URO,
34 MPU_ACCESS_PRIV_RO = 0x05,
35 MPU_ACCESS_PRIV_RO_URO,
40 MPURegionNumber number;
41 uint32_t base_address;
46 MPUAccessPerm access_permission;
47 bool disable_code_exec;
StatusCode mpu_enable_region(MPURegionNumber region_number)
Enables given region.
Definition: mpu.c:80
StatusCode mpu_disable_region(MPURegionNumber region_number)
Disables given region.
Definition: mpu.c:90
StatusCode mpu_configure_region(MPURegion *region, MPURegionSettings *settings)
Configures MPU region with given settings.
Definition: mpu.c:53
StatusCode mpu_init(void)
Enables or Disables MPU with default memory access.
Definition: mpu.c:100
StatusCode
StatusCodes for various errors.
Definition: status.h:27