Hi,
Creating an new app will only call the main() in the form of task, i have requirement to create couple of task in my main() so is it possible to create user defined tasks?
regards
KK
Hi,
Creating an new app will only call the main() in the form of task, i have requirement to create couple of task in my main() so is it possible to create user defined tasks?
regards
KK
Hi KK,
Creating an new app will only call the main() in the form of task, i have requirement to create couple of task in my main() so is it possible to create user defined tasks?
In zephyr, you can declare threads as described here:
https://docs.zephyrproject.org/latest/reference/kernel/threads/index.html
Here's an example:
Kind regards,
Håkon
Hi Håkan,
KK is asking:
"I have gone through your reply in DevZone I am yet to build an application which give me confidence in creating tasks.
Can you please comment?
Thanks
Hi,
"main" is a thread, and you can omit it by not having it defined in your project, as shown in the basic thread sample.
Or you can keep it, and the system will automatically define it as a thread. Its up to you.
The parameters and priorities are set when defining a thread, as shown in the sample and the documentation that I previously linked to.
Could you please clarify what the issue is?
Kind regards,
Håkon
Hi,
"main" is a thread, and you can omit it by not having it defined in your project, as shown in the basic thread sample.
Or you can keep it, and the system will automatically define it as a thread. Its up to you.
The parameters and priorities are set when defining a thread, as shown in the sample and the documentation that I previously linked to.
Could you please clarify what the issue is?
Kind regards,
Håkon