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
  • There is also the "pure" blinky example (without the rtos). That one doesn't use timers etc. There is an eternal struggle between tech support, product management, and the SDK team regarding the level of complexity of the SDK examples. We get a constant stream of suggestions for the SDK from large and small customers, and we also want to provide drivers and examples for all new SoC features and specifications. Hence we have to prioritise. From a tech support view though, I tend to agree with you and would rather see many simple examples, than just a few complex ones showcasing everything at once.

    Regarding SES tutorials my only suggestion is to take a look at some of these blog posts.

Children
No Data
Related