what is Super loop in Embedded systems?
Actually, and old Sinclair Spectrum would be enough to reject that code, since you forgot to supply your superloop with a closing brace ;)
for several decades I have used the name "workloop"
Erik
But what about cases where the loop just sits there twiddling its thumbs most of the time? I would assume that most superloops only do "work" in small fraction of their iterations. ;)
StormP once said: "there is nothing like work, I can watch it for hours without getting tired". Also accredited to Will Rogers, I do not know who was the orignal author.
anyhow, is it not work to check a state machine, even if the result is 'idle'
for several decades I have used the name "workloop" here, they call it (probably due to historical reasons!) "main loop".
decades decades! wow.
Alternative version:
I love work - I could stand and watch it all day!
decades decades! wow
Now that I have semi-retired to be a microcontroller consultant, I can reveal that my first microcontroller project was somewhere around 1970. Of course, in those days, the microcontroller was called a PDP-8 and weighed about 50 pounds. 2k of memory was standard, 4k was sheer luxury. My first '51 project was in the early days of its existence, I still remember burning my fingers on the original (non-C) chip.
Oh no - now we're into reminiscence mode!
Trouble is, nostalgia ain't what it used to be...
nostalgia ain't what it used to be...