⚠️ 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.
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()?
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.
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.
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.
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
Thank you.
I use Timer0 for a function, already. I would like another function with lower priority. Is it impossible?
你能请注明你tryng吗to accomplish? For mem it's not clear enough.
Thanks, PM_Dialog
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.
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
I unerstand DA146xx support it. Thanks a lot.