This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Periodic_Task

Hi ,

I want to create a periodic task which has to run every 10 seconds, how can I create such a task?should I use threads for it? And which clock source does the task use to count 10 seconds?

Thank you for your help!

Parents Reply
  • I'm using NRF52-DK(nRF52832) and Mesh sdk v10.1 Alpha. actually I tried to create a COMPARE_EVENT on TIMER1 but I don't know how to create a interrupt handler for it. cause when I enable interrupt for timer1 the whole program crashes (it complains about the NVIC_EnableIRQ(TIMER1_IRQn)) , can you please help me to find out how can I enable interrupts for TIMER1 or RTC1 in Mesh SDK ? And how should I creat a call back handler for it ?

Children
No Data
Related