![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_141.png)
25-2
MPower Management Tools
Programmer’s Manual
Parameter
Return Value
25.3
SetDutyCycle
Syntax
U16
SetDutyCycle
(U16 percentage)
Description
This tool allows the application to set its own duty cycle level. Applications
within a system can have different duty cycle percentages. PPSM
automatically changes the PCM correspondingly when the application tasks
become active.
Parameter
Name
Description
milliSecond
Specifies the Doze mode time-out period
in unit of milliseconds. The range is from 0
to 60000 milliseconds. The 0 default
value means that PPSM enters Doze
mode whenever there is no messages and
no task swapping is needed.
If it’s
PPSM_NO_DOZE, no automatically going
to doze after doze timeout nor sleep
timeout will happen.
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_DOZE_TIME
Doze time-out period out of range
Name
Description
percentage
Specifies the percentage of duty cycle
required from the processor core. Range
from a minimum of 3% processor usage to
a maximum of 100% usage in unit of 3%
steps. Anything less than 3% will be set to
3; anything more than 100% will be set to
100.
By default, all applications start at 100%
duty cycle
Personal Portable System Manager
Programmer’s Manual
24-5
Parameter
Return Value
24.8
TotalMemSize
Syntax
U32
TotalMemSize
(void)
Description
This routine returns to the caller the number of bytes of memory can be
allocated through Lmalloc(), Lcalloc() or Lrealloc() on the system. Value
returned by this function is a constant which is the same as the malloc size
specified in the Linker Specification File (.SPC).
Parameter
Return Value
Syntax
U32
TotalMemUsed
Description
Name
Description
None
Name
Description
N/A
Name
Description
None
Name
Description
N/A
The
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.