Hello all, I'm working with a target based on AT89C51ED2 and RTX-Tiny2. Is it OK to create an X task every 100msec and delete it 10msec after created it? I have a problem in making it working all the time because on each creation I initialize some parameters and after that wait for an interrupt signal. Thanks a lot, Roberto
Why would you want to do such a thing? Sorry, but I don't understand your question.
Why do you want to create an X task every 100msec and delete it 10msec after created it? Could this not be solved in a more conventional manner, without the aid of an RTOS?
What is wrong with an RTOS on an 8051. When it is used the right way, you may do powerful applications with it. RTX-Tiny offers os_create and os_delete functions. So you may do what you want simply by using this functions. Take a look to Keil\C51\Examples\Traffic where this technique is used.
"So you may do what you want simply by using this functions." I know I can use the RTOS functions as I want. My question is, is it "healthy" to do such a thing (create task every 100msec and delete it after about 10msec after)? Healthy from the micro and RTOS point of view. Thanks, Roberto
Yes, there is no problem with that.
Yes, there is no problem with that. Thanks a lot. You make me a very happy man :) Roberto