Pumpkin, Inc.

Pumpkin User Forums

Stop and Start Task question.

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

Stop and Start Task question.

Postby kamyip » Sat Sep 18, 2004 7:25 am

Hi Andrew,

Correct me if I'm wrong, if I use the OSStopTask() to suspend the operation of a task and later on use the OSStartTask() to enable it again, that task will resume form where it stop previously, am I right?

What if at certain circumstances I would like the task to just restart from the beginning, any advise on this?


I'm using Salvo LE


Cheers :-)

kamyip
 
Posts: 46
Joined: Mon Apr 15, 2002 11:00 pm

Re: Stop and Start Task question.

Postby aek » Sat Sep 18, 2004 8:55 am

Hi Kam.

1. You are right -- the task will resume where it last left off, i.e. right after its last contect switch.

2. To totally restart a task, you can call OSCreateTask() instead ...

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Stop and Start Task question.

Postby kamyip » Sun Sep 19, 2004 5:32 am

Andrew, thanks for your prompt response.

Have a nice day.

kamyip
 
Posts: 46
Joined: Mon Apr 15, 2002 11:00 pm


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 1 guest

cron