11.07.2015 Views

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Additional InformationThe actual value of the extended software timer (the time until expiration) is kept until OS_StartTimerEx() lets thetimer continue.OS_RetriggerTimerEx()DescriptionRestarts an extended timer with its initial time value.Prototypevoid OS_RetriggerTimerEx (OS_TIMER_EX* pTimerEx);ParameterDescriptionpTimerExPointer to the OS_TIMER_EX data structure which contains the data of the extended softwaretimer.Table 34: OS_RetriggerTimerEx() parameter listAdditional InformationOS_RetriggerTimerEx() restarts the extended software timer using the initial time value which was set at creationof the timer or which was set using the function OS_SetTimerPeriodEx().ExampleOS_TIMER TIMERCursor;OS_TASK TCB_HP;BOOL CursorOn;void TimerCursor(void) {if (CursorOn != 0) ToggleCursor(); /* Invert character at cursor-position */OS_SignalEvent(0x01, (OS_TASK*) pTask);OS_RetriggerTimer(&TIMERCursor); /* Make timer periodical */}void InitTask(void) {/* Create and start TimerCursor */OS_CREATETIMER_EX(&TIMERCursor, TimerCursor, 500, (void*) &TCB_HP);}OS_SetTimerPeriodEx()DescriptionSets a new timer reload value for a extended software timer.Prototypevoid OS_SetTimerPeriodEx (OS_TIMER_EX* pTimerEx,OS_TIME Period);ParameterDescriptionpTimerExPeriodTable 35: OS_SetTimerPeriodEx() parameter listAdditional InformationPointer to the OS_TIMER_EX data structure which contains the data of the timer.Timer period in basic <strong>IAR</strong> <strong>PowerPac</strong> <strong>RTOS</strong> time units (nominal ms):The data type OS_TIME is defined as an integer, therefore valid values are1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!