Reading a register right after writing to it. Why?

Hi!

I have found the following piece of code on an example from a Nordic employee. I'm curious as to its purpose.

NRF_TIMER0->EVENTS_COMPARE[0] = 0;
(void)NRF_TIMER0->EVENTS_COMPARE[0];

Why is the register set, and then read just after?

Thanks

Parents
No Data
Reply Children
No Data