Quantcast
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: Looking for sleep function for procedures running under BIOS

One way to prevent other tasks from running is to use Task_setPri() to temporarily raise your task's priority to be higher than any other task. Then simply wait in a loop until a global variable is set either by a Hwi or a Swi thread. When the event occurs use Task_setPri() to restore the task to its original priority.

Alan


Viewing all articles
Browse latest Browse all 25965


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>