Write a task scheduler in C using a prototype like "void scheduleTask(task* task, int timeToExecute)".
Anonymous
Look up how FreeRTOS does it. All you need is a function pointer, a system timer and a task list.
Check out your Company Bowl for anonymous work chats.