yield() - Is it needed on Teensy?

Mike0675

Member
Hi, working on ESP32 for quite a while i´m now working with Teensy 4.1.

On ESP32 its necessary to call yield() from time to time - giving the Processes in Background time.

Do we need this on Teensy? Are there Background-Processes?

Where do i find Infos about this?

Where can i find more Infos about PSRAM?

Best Regards
 
Do we need this on Teensy? Are there Background-Processes?

Some libraries run stuff "in the background" using yield(). Today it's fairly rare, but more will likely be added in the future. USBHost_t36 is an example of such a library that will probably make more use of running tasks from yield() in the future.

There aren't any really essential always-used things needing yield() like is done with ESP.

So the short answer is you probably won't need to call yield() unless you're using a library and you notice it fails to do certain tasks automatically. But adding yield() calls to any really long operations might be a good idea anyway, if you plan to make use of libraries that tend to do things automatically.
 
Back
Top