15-4
Programmer’s Manual
15.1.5
IRPT_KEY
PPSM provides a soft keyboard as part of the character input tool. Once
activated, a keyboard is displayed on the display area. Pressing any one of the
keys on the soft keyboard will result in a IRPT_KEY message generated by PTable 15-1
to the application. The message will also include the ASCII code of the key that
was pressed. The ASCII code returned is of type TEXT, i.e. 2-byte format with
zero extended in high byte and the coordinate of pen touch on the key.
PPSM_ICON_TOUCH and
PPSM_INPUT_TOUCH
PPSM_ICON_PEN_UP and
PPSM_INPUT_PEN_UP
PPSM_ICON_DRAG and PPSM_INPUT_DRAG
PPSM_ICON_DRAG_UP and PPSM_INPUT_DRAG_UP
Figure 15-2 ICON and INPUT area pen status messages
Personal Portable System Manager
Programmer’s Manual
Interrupt Interrupt Handling
15-1
Chapter 15 Interrupt Handling
PPSM maintains a set of interrupt handlers internally to handle external and
internal hardware events. PPSM application programmers do not need to be
aware of the characteristics of hardware such as pen device, timer, UART and
real time clock. The kernel intercepts all interrupts and data generated from the
event and send them to the application in a pre-defined format.
PPSM maintains a unique software interrupt buffer for each application. When a
hardware interrupt occurs, the event and data generated from the interrupt are
stored into this software interrupt buffer. This buffer is the interface between
PPSM and the application, making sure that data and interrupt will not be missed
if the application is slow in response to an interrupt. Hence de-coupling the real-
time interrupt of the peripheral devices from the application.
PPSM has two distinct types of interrupts:
System interrupt
User defined interrupt
15.1
System Interrupts
These are interrupts that are automatically handled by PPSM system. Application
developers can make use of the services provided by PPSM to manage the
hardware resources such as the touch panel, timer, UART, RTC and screen.
shows the list of interrupt identifiers that are generated by the system
Hardware
Interrupt
PPSM
Interrupt
Handlers
Interrupt
Buffer 1
Interrupt
Buffer n
App 1
App n
Figure 15-1 PPSM Interrupt Message Handling
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.