Hardware access layer (HAL) for managing the CPU configuration (CPUCONF) peripheral.
More...
|
NRF_STATIC_INLINE void | nrf_cpuconf_task_trigger (NRF_CPUCONF_Type *p_reg, nrf_cpuconf_task_t task) |
| Function for activating the specified CPUCONF task.
|
|
NRF_STATIC_INLINE void | nrf_cpuconf_cpu_start_set (NRF_CPUCONF_Type *p_reg, bool enable) |
| Function for setting the CPU start enable.
|
|
NRF_STATIC_INLINE bool | nrf_cpuconf_cpu_start_check (NRF_CPUCONF_Type const *p_reg) |
| Function for checking whether the CPU start is enabled.
|
|
NRF_STATIC_INLINE void | nrf_cpuconf_cpu_wait_set (NRF_CPUCONF_Type *p_reg, bool wait) |
| Function for setting the CPU wait state.
|
|
NRF_STATIC_INLINE bool | nrf_cpuconf_cpu_wait_check (NRF_CPUCONF_Type const *p_reg) |
| Function for checking whether the CPU wait is enabled.
|
|
NRF_STATIC_INLINE void | nrf_cpuconf_secure_vtor_set (NRF_CPUCONF_Type *p_reg, uint32_t vtor) |
| Function for setting the initial value of the secure Vector Table Offset Register after CPU reset.
|
|
NRF_STATIC_INLINE uint32_t | nrf_cpuconf_secure_vtor_get (NRF_CPUCONF_Type const *p_reg) |
| Function for getting the initial value of the secure Vector Table Offset Register after CPU reset.
|
|
NRF_STATIC_INLINE void | nrf_cpuconf_nonsecure_vtor_set (NRF_CPUCONF_Type *p_reg, uint32_t vtor) |
| Function for setting the initial value of the non-secure Vector Table Offset Register after CPU reset.
|
|
NRF_STATIC_INLINE uint32_t | nrf_cpuconf_nonsecure_vtor_get (NRF_CPUCONF_Type const *p_reg) |
| Function for getting the initial value of the non-secure Vector Table Offset Register after CPU reset.
|
|
Hardware access layer (HAL) for managing the CPU configuration (CPUCONF) peripheral.
◆ nrf_cpuconf_task_t
CPU configuration tasks.
Enumerator |
---|
NRF_CPUCONF_TASK_ERASECACHE | Erase the caches used by the CPU.
|
◆ nrf_cpuconf_cpu_start_check()
NRF_STATIC_INLINE bool nrf_cpuconf_cpu_start_check |
( |
NRF_CPUCONF_Type const * |
p_reg | ) |
|
Function for checking whether the CPU start is enabled.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
- Return values
-
true | CPU is started. |
false | CPU is stopped. |
◆ nrf_cpuconf_cpu_start_set()
NRF_STATIC_INLINE void nrf_cpuconf_cpu_start_set |
( |
NRF_CPUCONF_Type * |
p_reg, |
|
|
bool |
enable |
|
) |
| |
Function for setting the CPU start enable.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | enable | True if CPU should be started, false if it should be stopped. |
◆ nrf_cpuconf_cpu_wait_check()
NRF_STATIC_INLINE bool nrf_cpuconf_cpu_wait_check |
( |
NRF_CPUCONF_Type const * |
p_reg | ) |
|
Function for checking whether the CPU wait is enabled.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
- Return values
-
true | CPU is waiting. |
false | CPU is not waiting. |
◆ nrf_cpuconf_cpu_wait_set()
NRF_STATIC_INLINE void nrf_cpuconf_cpu_wait_set |
( |
NRF_CPUCONF_Type * |
p_reg, |
|
|
bool |
wait |
|
) |
| |
Function for setting the CPU wait state.
When the CPU wait state is enabled, the CPU will be stopped even if the CPU clock signal is present.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | wait | True if CPU should wait, false otherwise. |
◆ nrf_cpuconf_nonsecure_vtor_get()
NRF_STATIC_INLINE uint32_t nrf_cpuconf_nonsecure_vtor_get |
( |
NRF_CPUCONF_Type const * |
p_reg | ) |
|
Function for getting the initial value of the non-secure Vector Table Offset Register after CPU reset.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
- Returns
- Initial value of the non-secure VTOR.
◆ nrf_cpuconf_nonsecure_vtor_set()
NRF_STATIC_INLINE void nrf_cpuconf_nonsecure_vtor_set |
( |
NRF_CPUCONF_Type * |
p_reg, |
|
|
uint32_t |
vtor |
|
) |
| |
Function for setting the initial value of the non-secure Vector Table Offset Register after CPU reset.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | vtor | Value of the non-secure Vector Table Offset Register to be set. |
◆ nrf_cpuconf_secure_vtor_get()
NRF_STATIC_INLINE uint32_t nrf_cpuconf_secure_vtor_get |
( |
NRF_CPUCONF_Type const * |
p_reg | ) |
|
Function for getting the initial value of the secure Vector Table Offset Register after CPU reset.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
- Returns
- Initial value of the secure VTOR.
◆ nrf_cpuconf_secure_vtor_set()
NRF_STATIC_INLINE void nrf_cpuconf_secure_vtor_set |
( |
NRF_CPUCONF_Type * |
p_reg, |
|
|
uint32_t |
vtor |
|
) |
| |
Function for setting the initial value of the secure Vector Table Offset Register after CPU reset.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | vtor | Value of the secure Vector Table Offset Register to be set. |
◆ nrf_cpuconf_task_trigger()
NRF_STATIC_INLINE void nrf_cpuconf_task_trigger |
( |
NRF_CPUCONF_Type * |
p_reg, |
|
|
nrf_cpuconf_task_t |
task |
|
) |
| |
Function for activating the specified CPUCONF task.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | Task to be activated. |