23-14
Timer Tools
Programmer’s Manual
Return Value
23.21
Timeout
Syntax
STATUS
Timeout
(U32 millisecond)
Description
General timer time-out routine. This is a one-shot time-out.
The application that calls this routine will register a time-out interval with
PPSM. A time interrupt is generated to the task when this time-out period is
expired.
Maximum allowed value for Timeout() is 1000.
period
It can be:
RTC_PERI_NONE - Kill all period
interrupts in all tasks
RTC_PERI_SECOND - Set second
periodic interrupts for current task
RTC_PERI_MINUTE - Set minute periodic
interrupts for current task
RTC_PERI_HOUR - Set hour periodic
interrupts for current task which is only
available for EZ328
RTC_PERI_MIDNIGHT - Set midnight
periodic interrupts for current task
RTC_PERI_NO_SECOND - Kill second
periodic interrupt for current task
RTC_PERI_NO_MINUTE - Kill minute
interrupt for current task
RTC_PERI_NO_HOUR - Kill hour
interrupt for current task which is only
available for EZ328
RTC_PERI_NO_MIDNIGHT - Kill
midnight interrupt for current task
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_PERIOD
Invalid period flag
PPSM_ERR_NO_MEMORY
Out of memory
Name
Description
Personal Portable System Manager
Programmer’s Manual
Timer Tools
23-15
Parameter
TimeoutId
Syntax
STATUS
TimeoutId
(P_U32
Description
General timer time-out routine. This is a one-shot time-out.
The application that calls this routine will register a time-out interval with
PPSM. A time interrupt is generated to the task when this time-out period is
expired with the timer id. passed to task.
Maximum allowed value for Timeout() is 1000.
Parameter
Return Value
Name
Description
millisecond
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_TMOUT_VALUE
Invalid time-out period
Name
Description
timerId
millisecond
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_TMOUT_VALUE
Invalid time-out period
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.