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_region Region handle. [in] address Region base address. [in] size Region size. [in] attributes Region 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] region Region handle.
- Returns
- NRF_SUCCESS on success, otherwise error code.