As soon as I add ble_radio_notification library into nrf51822 AC, Softdevice 130, when I compile it, I get
multiple definition of `SWI1_IRQHandler'
error. I see that it is defined in ble_radio_notification.c as
void SWI1_IRQHandler(void)
{
m_radio_active = !m_radio_active;
if (m_evt_handler != NULL)
{
m_evt_handler(m_radio_active);
}
}
and in nrf_drv_swi.c as
#define SWI_HANDLER_TEMPLATE(NUM) void SWI##NUM##_IRQHandler(void) \
{ \
nrf_drv_swi_process((NUM), m_swi_flags[(NUM) - SWI_START_NUMBER]); \
}
where
#if SWI_DISABLE1 == 0
SWI_HANDLER_TEMPLATE(1)
#endif
I see that SWI_DISABLE0 is defined in nrf5x.mak but not SWI_DISABLE1 .
Shall I define it to get rid of the error?
-
This topic was modified 8 years, 8 months ago by support. Reason: formatting