PM5365 PMC-Sierra, Inc., PM5365 Datasheet - Page 23

no-image

PM5365

Manufacturer Part Number
PM5365
Description
TEMUX/TEMAP/TECT3 T1/E1 FRAMER, VT/TU MAPPER, M12/M13 MUX DRIVER MANUAL
Manufacturer
PMC-Sierra, Inc.
Datasheet
Proprietary and Confidential to PMC-Sierra, Inc., and for its Customers’ Internal Use
Document ID: PMC-1991611, Issue 2
The driver provides system-independent functions,
the corresponding system-specific functions,
The system-specific functions isolate the system-specific communication mechanism (between
the ISR and DPR) from the system-independent functions,
Figure 6 illustrates the interrupt service model used in the TEMUX/TEMAP/TECT3 driver
design.
Figure 6: Interrupt Service Model
Note: Instead of using an interrupt service model, you can use a polling service model in the
TEMUX/TEMAP/TECT3 driver to process the device’s event-indication registers.
Calling temuxISR
An interrupt handler function, which is system dependent, must call
low-level interrupt-handler function must trap the device interrupts. You must implement this
function for your system.
The interrupt handler that you implement (
vector table of the system processor. Then it is called when one or more
TEMUX/TEMAP/TECT3 devices interrupt the processor. The interrupt handler then calls
temuxISR
The
interrupt-status registers of the TEMUX/TEMAP/TECT3. Then
status information if valid status bits are set. The
turn clears the initial cause of the interrupt. The
message to the DPR task (for each device that requested service) which contains the valid
interrupt status bits and the device’s context handle.
Note: Normally you should pass the status information for deferred interrupt processing by
implementing a message queue.
Calling temuxDPR
The
the RTOS. You should set the DPR task’s priority higher than the application task(s) interacting
with the TEMUX/TEMAP/TECT3 driver. In the message-queue implementation model, this task
has an associated message queue. The task waits for messages from the ISR on this message
queue. When a message arrives,
sysTemuxISRHandler
temuxISR
sysTemuxDPRTask
temuxISR
for each device in the active state that requires service.
function reads from the master interrupt-status registers and the miscellaneous
Interrupt
Status
function is a system specific function that runs as a separate task within
sysTemuxDPRTask
TEMUX/TEMAP/TECT3 (PM8315, PM5365, PM4328) Driver Manual
sysTemuxDPRTask
temuxDPR
sysTemuxISRHandler
sysTemuxISRHandler
sysTemuxISRHandler
temuxISR
temuxISR
calls the DPR (
temuxISR
Indication
Callbacks
also clears those status bits, which in
and
temuxISR
temuxDPR
) is installed in the interrupt
temuxISR
temuxDPR
and
and
Software State Description
function then sends a
temuxDPR
sysTemuxDPRTask
returns with this
Application
. You must fill in
. But first, the
).
.
23
.

Related parts for PM5365