Docs

You are here:
OS module

Functions

void OS_Start (void)
 
void OS_Stop (void)
 
void OS_Sleep (OSTime time)
 
void OS_SleepUntil (OSTime time)
 
OSTime OS_GetSystemTime (void)
 

Detailed Description

Introduction.

The OS module in HAL provides an abstraction of most common operating system mechanisms. It is used mainly to allow HAL to use some OS functionality in so called OS INTEGRATION mode. The application may also use OS module for better OS-portability.

Interfaces.

At the moment, the OS module provides interfaces for:

Function Documentation

OSTime OS_GetSystemTime ( void  )

Returns the current system time (usually the number of system ticks that elapsed since reset).

void OS_Sleep ( OSTime  time)

Puts the calling task to sleep for a number of ticks

Parameters
timetime (in miliseconds) after which the task will be woken up again
void OS_SleepUntil ( OSTime  time)

Puts the calling task to sleep until specified time is reached

Parameters
timeabsolute time at which the calling task will be woken up again
void OS_Start ( void  )

Starts the OS scheduler.

void OS_Stop ( void  )

Stops the OS scheduler.

Go to Top