Re: [riot-devel] xtimer race condition

2018-03-31 Thread Joakim NohlgÄrd
Hi Matthew, My guess is that you are running that function with interrupts disabled, which blocks the xtimer timeouts. The reason that short sleeps work in xtimer is that internally that is handled as a spin, while longer timeouts are handled by setting a hardware timer target. You can try using

[riot-devel] xtimer race condition

2018-03-31 Thread Matthew Blue
Hello all, I have had some odd problems with a PR I am attempting to finalize: cpu/atmega_common: RTT and RTC support https://github.com/RIOT-OS/RIOT/pull/8842 When working with the real-time timers, there are a number of times that you have to wait a few of the slow clock cycles to go by. I am