Task with the lowest priority

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
7 posts / 0 new
Last post
hashi
Offline
Last seen:6 months 3 weeks ago
加入:2018-01-04 02:04
Task with the lowest priority

I would like to call my function periodically. The function should have the lowest priority. So, app_easy_timer is not suitable. Does SDK have the callback with the lowest priority? Should I change main_func()?

Device:
PM_Dialog
Offline
Last seen:11 hours 22 min ago
Staff
加入:2018-02-08 11:03
Hi Hashi,

Hi Hashi,

You should NOT modify any of the SDK files. Your project implantation should be in the application layer- files that start with app_ . Calling a function periodically can be done either with the app_easy_timer or with SW timers. Please checkout out 5.0.4\projects\target_apps\peripheral_examples\timer0 SDK example.

Thanks, PM_Dialog

hashi
Offline
Last seen:6 months 3 weeks ago
加入:2018-01-04 02:04
Thank you.

Thank you.

I use Timer0 for a function, already. I would like another function with lower priority. Is it impossible?

PM_Dialog
Offline
Last seen:11 hours 22 min ago
Staff
加入:2018-02-08 11:03
Can you please indicate what

你能请注明你tryng吗to accomplish? For mem it's not clear enough.

Thanks, PM_Dialog

hashi
Offline
Last seen:6 months 3 weeks ago
加入:2018-01-04 02:04
I have three functions.

I have three functions. Function A is a periodic function called every 62.5us using Timer0. Function B also is a periodic function called every 100us using SysTick. Function C is not periodic one. Function C should run with the lowest priority like a normal task. It is best that kernel event handler calls function C, I think. But it is not allowed. So, I would like to find another way.

PM_Dialog
Offline
Last seen:11 hours 22 min ago
Staff
加入:2018-02-08 11:03
Hi hash,

Hi hash,

Please checkout the SDk examples! The DA14580 dos not support a multi-tasking enviroment. If you are interrested in multi-taskign please checkourt DA146xx product family.

Thanks, PM_Dialog

hashi
Offline
Last seen:6 months 3 weeks ago
加入:2018-01-04 02:04
I unerstand DA146xx support

I unerstand DA146xx support it. Thanks a lot.