How to tell if scheduler has started?
How to tell if scheduler has started?
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.
- 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?
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.
It is started after chSysInit(), place your initialization code before calling the function. You could check for "currptr" to be different from NULL.
Giovanni.
Who is online
Users browsing this forum: No registered users and 16 guests