Different tasks have to run at the same time. Like: Display refresh, sensor refresh, motor drive, network buffer fetch ...
Build a scheduler that knows about different priorities in different situations/modes and do the associated tasks accordingly.
Change the architecture accordingly. Don't break too much old code please. (but also make it future proof)
Different tasks have to run at the same time. Like: Display refresh, sensor refresh, motor drive, network buffer fetch ... Build a scheduler that knows about different priorities in different situations/modes and do the associated tasks accordingly.
Change the architecture accordingly. Don't break too much old code please. (but also make it future proof)
see https://github.com/Neumi/ethersweep/tree/scheduler