Page 1 of 1

How to wake from sys_sleep() after a period of time?

Posted: Wed Mar 13, 2019 12:17 am
by gmac42
Hi,

I'd like to do some tasks regularly (let a cursor blink, for example), but still spend most of the time in a power saving state.
It seems like

Code: Select all

sys_timer_start(timer_ix, ms_value);
sys_sleep();
sys_timer_disable(timer_ix);
would fit the bill, but I don't know if I can just choose any timer or if some of them are used by the OS.
Any hints would be greatly appreciated!

Regards
Gert