3 ms·
Well the ESP-IDF is freeRTOS based, so: threads. But have fun re-inventing the SDK I guess?
by MrBuddyCasino 6y ago
Well the ESP-IDF is freeRTOS based, so: threads. But have fun re-inventing the SDK I guess?
- dls2016 6y agoExactly, FreeRTOS makes it trivial to spin up 20 threads... who was doing that with MS-DOS?
- pjmlp 6y agoYou wouldn't, because the whole point of bare metal is to ignore the OS and use directly the BIOS and hardware. And regarding threads, we would use cooperative concurrency, and also take ownership of the timer interrupt. Anything is easy when there is an abstraction implemented as library. Games and demoscene tricks.
- MrBuddyCasino 6y agoI don't understand why they used a wasteful threaded model instead of an event reactor. It makes no sense to me on a constrained embedded platform. The right way to do it is Japaric's "Real-Time Interrupt-driven Concurrency". Only works for ARM cores though...