How to tell if scheduler has started?

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

How to tell if scheduler has started?

Postby faisal » Fri Oct 20, 2017 5:01 pm

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: How to tell if scheduler has started?

Postby Giovanni » Sat Oct 21, 2017 4:52 pm

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.


Return to “ChibiOS/RT”

Who is online

Users browsing this forum: No registered users and 16 guests