I am trying to use TIMER1, but it seems that my ISR isn't being linked in during the build.
uint32_t timer1_init(void)
{
...
NVIC_SetPriority(TIMER1_IRQn, APP_IRQ_PRIORITY_LOW);
NVIC_ClearPendingIRQ(TIMER1_IRQn);
NVIC_EnableIRQ(TIMER1_IRQn);
...
NRF_TIMER1->TASKS_START = 1;
...
}
void timer1_schedule(timer1_id_t id, uint16_t ticks)
{
...
NRF_TIMER1->CC[..] = ticks;
NRF_TIMER1->INTENSET = ..;
...
}
void Timer1_IRQHandler(void)
{
...
// cannot set a breakpoint in here.
// code not linked in?
...
}
Is there something else I need to do to declare an ISR?