int main(void)
{
initialize();
execution_start(start);
for (;;)
{
(void)sd_app_evt_wait();
}
}
can you explain me the execution of code flow in the main with these APIs?
Thanks,
int main(void)
{
initialize();
execution_start(start);
for (;;)
{
(void)sd_app_evt_wait();
}
}
can you explain me the execution of code flow in the main with these APIs?
Thanks,
Your code will do some initialization, then start execution of something, then enters a endless loop. sd_app_evt_wait will put the device into system on sleep mode. If you have initialized and started something that generates interrupts, your code will wake and handle events whenever they occur.
Thank you jorgen, so in the light switch example, is pressing a button on the kit producing an interrupt that wakes up my processor? If that is correct, then what do i do to continuously send the sensor data at a fixed interval and do not trigger it with any interrupt, like pressing a button.
Thank you jorgen, so in the light switch example, is pressing a button on the kit producing an interrupt that wakes up my processor? If that is correct, then what do i do to continuously send the sensor data at a fixed interval and do not trigger it with any interrupt, like pressing a button.