Cooperative multitasking with <cont.h>
Posted: Mon Aug 28, 2017 7:36 pm
I'm working on a small web server/light controller, using the adafruit huzzah with a lcd and sainsmart relay controlled by an mcp23017. I have the hardware up and running nicely (while I'm good at programming, I'm a noob at electronics, so I'm happy it worked so well) and would like some sort of cooperative multitasking framework to manage the thing.
I really liked https://github.com/anmaped/esp8266-scheduler but I can't get it working. Even while playing around with the Arduino linker parameters I've had no luck. I looked at a few other libraries, but I think I can roll my own using <cont.h>. The documentation is a bit sparse...
I was wondering that happens when a function spawned by cont_run() finishes normally (ie. doesn't exit with yeild) and if there is anyway to detect whether a function exited normally, or via yield?
Anyone else played with <cont.h>? Any thoughts on cooperative multitasking libraries?
I really liked https://github.com/anmaped/esp8266-scheduler but I can't get it working. Even while playing around with the Arduino linker parameters I've had no luck. I looked at a few other libraries, but I think I can roll my own using <cont.h>. The documentation is a bit sparse...
I was wondering that happens when a function spawned by cont_run() finishes normally (ie. doesn't exit with yeild) and if there is anyway to detect whether a function exited normally, or via yield?
Anyone else played with <cont.h>? Any thoughts on cooperative multitasking libraries?