nrfxlib API 0.1.0
|
int32_t mpsl_init | ( | mpsl_clock_lfclk_cfg_t const * | p_clock_config, |
IRQn_Type | low_prio_irq, | ||
mpsl_assert_handler_t | p_assert_handler | ||
) |
#include <mpsl/include/mpsl.h>
MPSL initialization.
[in] | p_clock_config | Clock configuration. If NULL the LF clock will be configured as an RC source with rc_ctiv = MPSL_RECOMMENDED_RC_CTIV, .rc_temp_ctiv = MPSL_RECOMMENDED_RC_TEMP_CTIV, and .accuracy_ppm = MPSL_DEFAULT_CLOCK_ACCURACY_PPM. |
[in] | low_prio_irq | IRQ to pend when low priority processing should be executed. The application shall call mpsl_low_priority_process after this IRQ has occurred. |
[in] | p_assert_handler | Pointer to MPSL assert handler. |
CONFIG_SYSTEM_CLOCK_NO_WAIT
is set to 0, never modify the SEVONPEND flag in the SCR register, while this function is executing. Doing so might lead to a deadlock.0 | MPSL is successfully initialized. |
-NRF_EPERM | MPSL is already initialized. |
-NRF_EINVAL | Invalid parameters supplied. |