Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

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

$
0
0

Hi contributors, 

I have a program that runs BIOS and want to make it sleep for X ms.

If the knl.Clock module is calibrated the correct way, when a knl.Task calls Task_sleep I found out that the sleep time is very accurate. What happens is that Task_sleep changes the task state from running to blocked (or something else), so the scheduler will look for other tasks that can get run in the meantime, and that is the behavior that I dont want to occur.

Also Task_sleep can only run in a knl.Task context, I would like a sleep function that works anywhere, dont know if its convenient for that custom sleep function to be BIOS timer or clock based.

I would like an sleep function that sleeps the tasks for given ms and still block the scheduler, if that is the correct expression. Any thougths or ideas on that?

Thanks!!

-Jose Lopez


Viewing all articles
Browse latest Browse all 25965


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