The nRF52810 datasheet shows the EVENTS_COMPARE register as RW, so I'm assuming that I can write to it.
But when I write to it, nothing happens.
Example.
I set up the timer to generate an event at 10 seconds and use a While statement to wait.
while (NRF_TIMER1->EVENTS_COMPARE[TMRCC1] == false);
During this 10 seconds, I wait for an interrupt from an incoming ESB packet.
In the ESB handler, I write to the EVENTS_COMPARE register so that when the handler is done,
the program doesn't have to finish waiting for the remainder of the 10 seconds.
NRF_TIMER1->EVENTS_COMPARE[TMRCC1] = true;
However, this doesn't do anything as the program still waits until the 10 seconds is done.
Any tips would be greatly appreciated.