nRF5 SDK v17.1.0
Modules | Typedefs | Functions
MPU (Memory Protection Unit) driver

Functions for controlling MPU. More...

Modules

 Module for MPU configuration
 

Typedefs

typedef uint8_t nrf_mpu_lib_region_t
 MPU region handle.
 

Functions

ret_code_t nrf_mpu_lib_init (void)
 Initialize MPU and driver. More...
 
ret_code_t nrf_mpu_lib_region_create (nrf_mpu_lib_region_t *p_region, void *address, size_t size, uint32_t attributes)
 Create a new MPU region. More...
 
ret_code_t nrf_mpu_lib_region_destroy (nrf_mpu_lib_region_t region)
 Destroy an MPU region. More...
 

Detailed Description

Functions for controlling MPU.

Function Documentation

ret_code_t nrf_mpu_lib_init ( void  )

Initialize MPU and driver.

Returns
NRF_SUCCESS on success, otherwise error code.
ret_code_t nrf_mpu_lib_region_create ( nrf_mpu_lib_region_t p_region,
void *  address,
size_t  size,
uint32_t  attributes 
)

Create a new MPU region.

Parameters
[out]p_regionRegion handle.
[in]addressRegion base address.
[in]sizeRegion size.
[in]attributesRegion attributes. See ARM Cortex-M MPU documentation.
Returns
NRF_SUCCESS on success, otherwise error code.
ret_code_t nrf_mpu_lib_region_destroy ( nrf_mpu_lib_region_t  region)

Destroy an MPU region.

Parameters
[in]regionRegion handle.
Returns
NRF_SUCCESS on success, otherwise error code.

Documentation feedback | Developer Zone | Subscribe | Updated