This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RE: A BEGINNER'S GUIDE

Hi. This is my first time using Nordic product, the nrf518222 to be specific. I have been going through the template application code tutorial and I came across something I didn't understand. What do we mean by timer operation queues. I am also very new to the world of programming.

Parents
  • Hi,

    I assume you are asking about the operation queue for the application timer library? If so, then the timer operation queue is a queue where operations are put when you for instance call app_timer_start() or app_timer_stop(). The timer library documentation has a good description:

    When calling app_timer_start() or app_timer_stop(), the timer operation is just queued, and the software interrupt is triggered. The actual timer start/stop operation is executed by the SWI0 interrupt handler. Since the SWI0 interrupt is running in APP_LOW, if the application code calling the timer function is running in APP_LOW or APP_HIGH, the timer operation will not be performed until the application handler has returned. This will be the case, for example, when stopping a timer from a time-out handler when not using the scheduler.

Reply
  • Hi,

    I assume you are asking about the operation queue for the application timer library? If so, then the timer operation queue is a queue where operations are put when you for instance call app_timer_start() or app_timer_stop(). The timer library documentation has a good description:

    When calling app_timer_start() or app_timer_stop(), the timer operation is just queued, and the software interrupt is triggered. The actual timer start/stop operation is executed by the SWI0 interrupt handler. Since the SWI0 interrupt is running in APP_LOW, if the application code calling the timer function is running in APP_LOW or APP_HIGH, the timer operation will not be performed until the application handler has returned. This will be the case, for example, when stopping a timer from a time-out handler when not using the scheduler.

Children
No Data
Related