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

Functions running outside the main loop?

Hi there,

quite a beginner here and tring to figure some stuff out about the nordic programming style.

when sniffing around the given examples in the newest SDK(SES IDE) I was suprised to see that the functions(For example in the "blinky_freertos" example)

Manage to somehow regularly run even when the program is in the loop section of the main() function while it is completely empty.

How does it do that? How do we take advantage of it?

Also saw something weird with that example which is that function"UNUSED_VARIABLE()"

Which I don't get the point of and couldn't find anything about it in the infocenter but from selecting it and going to "Go to defenition" it looks like it takes what ever is in it and adds "void" before it....

Parents Reply
  • Thansk the UNUSED_VARIABLE() function now makes sense but I don't understand why would you make the examples use timers and interrupts for the beginners? It just makes it harder to understand and makes you dive way dipper into the code and hides things you want to understand and another exmpale is the SAADC there I couldn't find where and how an ADC sample function it related to any timer or interrupt.

    If we are on it do you maybe have a source of tutorials for the basic use of SES IDE with the NRF52 that includes things like importing external libraries and libraries from the sdk?

Children
No Data
Related