Page 1 of 1

How to tell if scheduler has started?

Posted: Fri Oct 20, 2017 5:01 pm
by faisal
I need a way to tell if the scheduler has started. For example, some modules expect to be configured before the OS is running, and I want to include a check for it.

Re: How to tell if scheduler has started?

Posted: Sat Oct 21, 2017 4:52 pm
by Giovanni
Hi,

It is started after chSysInit(), place your initialization code before calling the function. You could check for "currptr" to be different from NULL.

Giovanni.