![]() |
nRF Connect SDK API 3.3.99
|
| int fprotect_area_no_access | ( | uint32_t | start, |
| size_t | length ) |
#include <include/fprotect.h>
Protect flash area against reads/writes.
| [in] | start | Start of range to protect. |
| [in] | length | Length in bytes of range to protect. |
| 0 | On success. |
| -EINVAL | If any of the argument are incorrect. |
| -EFAULT | If the protection was not applied properly. |
| -ENOSPC | If function is called too many times. Applies to devices where there is a limited number of configuration registers which are used for all address ranges. |