How to tell if scheduler has started?

Discussions and support about ChibiOS/RT, the free embedded RTOS.
Post Reply
faisal
Posts: 382
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 45 times
Been thanked: 62 times

How to tell if scheduler has started?

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: How to tell if scheduler has started?

Post 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.
Post Reply