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

How do I raise an interrupt from application code?

I have a main loop in my application like this:

while (true)
{
  // Other calls left out here.

  app_sched_execute();

  err_code = sd_app_evt_wait();
  APP_ERROR_CHECK(err_code);
}

I'm now in a situation where one of my scheduled functions has executed and I need the main loop to iterate. But it's blocked at sd_app_evt_wait(). I could reverse the order of app_sched_execute() and sd_app_evt_wait() but that has the potential to cause other problems.

How do I generate an interrupt from application code? The soft device is enabled.

Parents Reply Children
Related