mbradley
Joined: 11 Jul 2009 Posts: 118 Location: California, USA
|
Task Manager |
Posted: Wed Dec 09, 2009 3:50 am |
|
|
I just wanted to share something I just wrote up over the last couple days.
I needed to handle a few tasks, and break up some large ones into a state machine.
I came up with something I call Queued tasks, it uses a timer to queue the task. When a task is queued, if the task has a higher priority, it will jump ahead of any task with a lower priority.
This is all done with the CCS compiler, and is currently in use in a project, so I know it works. At least in the capacity I am using it.
Take a look: http://www.mculabs.com/drivers/qtask.html _________________ Michael Bradley
www.mculabs.com
Open Drivers and Projects |
|