Hi,
I'm working on SDK 15,
When initializing USBD using function app_usbd_init, I found that if APP_USBD_CONFIG_POWER_EVENTS_PROCESS = 0,
it disabled all USBD event - including Rx and Tx - in my application I do not need the USBD power events (initializing them while soft device is enabled is not supported),
So I tried to eliminate the need to call nrf_drv_power_init (which again is not supported when soft device is enabled),
Does APP_USBD_CONFIG_POWER_EVENTS_PROCESS = 0 prevents usb cdc acm from functioning?
How can I initialize (while soft device already enabled) USBD for only Rx/Tx purpose?
looking at the code I found the following:
ret_code_t nrf_drv_power_init(nrf_drv_power_config_t const * p_config)
{
#ifdef SOFTDEVICE_PRESENT
if (nrf_sdh_is_enabled())
{
return NRF_ERROR_INVALID_STATE;
}
#endif
if (p_config == NULL)
{
p_config = &m_drv_power_config_default;
}
ret_code_t err_code = nrfx_power_init(p_config);
if (err_code == NRFX_SUCCESS)
{
m_initialized = true;
}
return err_code;
}
Regards,
Lior.