![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_149.png)
27-2
Task Handling Tools
UART Communication Tools
Programmer’s Manual
Return Value
27.2
AppSwap
Syntax
void
AppSwap
(U16 flag)
Description
If flagis FALSE, no task swapping is allowed by any means such as pen down
on application icon nor using SendMessage(), etc. If SendMessage() or
AdvSendMessage() are called after this function with FALSE in flag the
message will still be sent to the target task but the task swapping action will be
newScreen
Screen Flag -
PPSM_SCREEN_NOSCREEN
No panning screen is needed
PPSM_SCREEN_NEW
A panning screen of size
screenWidth
by
screenHeight
is required
screenWidth
If
newScreen
== PPSM_SCREEN_NEW,
this argument is the panning screen width
in number of pixels.
If this value is 0, the default screen width
and height are used
screenHeight
If
newScreen
== PPSM_SCREEN_NEW,
this argument is the panning screen height
in number of pixels.
If this value is 0, the default screen height
and width are used
bitmap
The bitmap for launch icon within LCD
display
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_TASK_ID
Invalid address for storing task identifier
PPSM_ERR_TASK_FLAG
Invalid screen flag
PPSM_ERR_TASK_WIDTH
Invalid screen width
PPSM_ERR_TASK_HEIGHT
Invalid screen height
PPSM_ERR_COORDINATE
Invalid coordinates
PPSM_ERR_NO_MEMORY
Not enough memory
Name
Description
Personal Portable System Manager
Programmer’s Manual
26-11
26.11
UARTTimeout
Syntax
STATUS
UARTTimeout
Description
Sets the maximum time interval allowed between two hardware UART
interrupts.
This time-out function prevents application from deadlocking itself when the
data stream terminates unexpectedly.
System do not initiate a timeout right after UARTTimeout() is called. PPSM
starts timeout with the given timeout interval after calling UARTSend(),
UARTReceive(), UARTSendCtrl() and UARTRcvCtrl().
The valid range of time-out values can be set is zero through 60,000 (in units
of milliseconds). A time-out value of zero means disabling all the time-out
function related to UART.
Parameter
Return Value
Name
Description
tmout
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_INVALID_ACCESS
Invalid access of UART
PPSM_ERR_INVALID_TMOUT
Time-out value out of range
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.