How to tell if scheduler has started?

Discussions and support about ChibiOS/RT, the free embedded RTOS.
faisal
Posts: 27
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 4 times
Been thanked: 2 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: 10240
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 212 times
Been thanked: 198 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 1 guest