Available Languages?:

OSA : OS_Ttimer_Run

OS_Ttimer_Run (time)

Service uses system timerAllowed only in task and functions called by task

Start counting current task's timer for time time. Timeout flag is cleared.

To use task timers you need to define OS_ENABLE_TTIMERS in OSAcfg.h. Size of current task's timers is set by OS_TTIMER_SIZE constant

Call allowed:

Allowed only in task and functions called by task (any depth)


time Value to set in timer's counter. Sets in system ticks - call OS_Timer periods. Size of time value must be less than size of timer




void Task (void)
    for (;;) {
        OS_Ttimer_Run (20); // Run current task's timer for 20 ticks

See also

en/osa/ref/allservices/os_ttimer_run.txt · Last modified: 07.10.2010 13:58 (external edit)
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki