Page 1 of 1

OS_Delay in functions

PostPosted: Fri Jul 28, 2006 2:03 am
by darkwing
hi!

is there a trick / possibility to use the OS_Delay inside a function (no task)?

cu
d.


Re: OS_Delay in functions

PostPosted: Sat Jul 29, 2006 7:32 am
by aek
No, there isn't.

To be able to context-switch from within a non-task function, a stack would need to be maintained for every task. This consumes a lot of memory -- too much to run on smaller processors.

------------------