- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to implement while loop and call application code functions at specific times. Use fine timer as time reference to execute specific function.
Solved! Go to Solution.
- Labels:
-
Timers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I checked with the developers and unfortunately, this is not possible because the application runs in its own thread and the entire application framework is event driven.
See this thread for more details: Re: where is int main(void) located?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I checked with the developers and unfortunately, this is not possible because the application runs in its own thread and the entire application framework is event driven.
See this thread for more details: Re: where is int main(void) located?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can we put while loop at the end of application create function and pet the watchdog. Below is the implementation
while (1)
{
Get native clock count (325usec) and timers uses native clock count
if (timer1_expired)
{
execute scheduler function1;
}
if (timer2_expired)
{
execute scheduler function2;
}
if (timer3_expired)
{
kick watchdog;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Then none of the Bluetooth functionality will work because you will not be letting other parts of the system run their state machines (that run in other thread contexts).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Other than fine and regular timers what other resources available for application. Can you provide us contact number for quick discussion and we are struck with no other options.