Pumpkin, Inc.

Pumpkin User Forums

OS_Delay in functions

If you have a general question or comment regarding Salvo, post it here.

OS_Delay in functions

Postby darkwing » Fri Jul 28, 2006 2:03 am


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


Posts: 1
Joined: Thu Jul 27, 2006 11:00 pm
Location: munich, bavaria, germany

Re: OS_Delay in functions

Postby aek » Sat Jul 29, 2006 7:32 am

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.


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

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest