Hello,
I'm using nRF51822 to implement a proprietary radio protocol. My first attempt, in the receiver, was polling the EVENTS_* registers. An example:
NRF_RADIO->EVENTS_READY = 0UL;
NRF_RADIO->TASKS_RXEN = 1UL;
while (NRF_RADIO->EVENTS_READY == 0UL);
But I need to do other things while the RADIO is transmitting or receiving. I tried to use RADIO_IRQn with no success:
void RADIO_IRQHandler(void)
{
log_uart("IRQ!!!\r\n");
}
void init(void)
{
NVIC_SetPriority(RADIO_IRQn, 1);
NVIC_ClearPendingIRQ(RADIO_IRQn);
NVIC_EnableIRQ(RADIO_IRQn);
}
The RADIO_IRQHandler function is never called. How can I fix this?
PS: I'm not using Nordic's SoftDevice.