Now that I'm back running again I've got a question related to restarting tasks.
I have four simple tasks that each wait on a binary semaphore, when signaled they toggle a port bit then use OS_Delay to sleep for 6 seconds and finaly un-toggle the bit before looping to wait on the semaphore again.
Sometimes these tasks will need to be restarted (the device has a global 'cancel' button) so some may be in OS_Delay() some may be waiting on their semaphore etc..
I have seen in the manual that OSDestroyTask() can't be used on a waiting task, so of course I tried it anyway and that resulted in serious wierdness with the tasks randomly 'locking up' as expected.
So, really my question is how can I completely nuke a running task in an unknown state so I can restart it?
Thanks,
Jon