20.12.2012 Views

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

API Call Reference List of APIs<br />

OUTPUT The appropriate bit in the appropriate mask register is reset.<br />

RETURN<br />

OK If the bit was masked<br />

ERROR if the bit was invalid<br />

void frcDmaCompIntHandler (void)<br />

This routine handles the DMA 0-3 completion interrupts. As soon<br />

as the interrupt signal is active the CPU analyzes the MV DMA 0-3<br />

Interrupt Cause register in order to locate the originating interrupt<br />

event. Then the routine calls the user specified service routine <strong>for</strong><br />

that interrupt cause. The function scans the dma0_3Array[]<br />

(dma0_3Count valid entries) trying to find a hit in the<br />

dma0_3Array cause table.When found, the ISR in the same entry<br />

is executed.<br />

INPUT None.<br />

OUTPUT If a cause bit is active and it's connected to an ISR function, the<br />

function will be called.<br />

RETURN None.<br />

void frcDmaErrorIntHandler(void)<br />

This routine handles the DMA 0-3 Error interrupts. As soon as the<br />

interrupt signal is active the CPU analyzes the MV DMA 0-3 Interrupt<br />

Cause register in order to locate the originating interrupt<br />

event. Then the routine calls the user specified service routine <strong>for</strong><br />

that interrupt cause. The function scans the<br />

dmaError0_3Array[] (dmaError0_3count valid entries) trying<br />

to find a hit. When found, the ISR in the same entry is executed.<br />

INPUT None.<br />

OUTPUT If a cause bit is active and it's connected to an ISR function, the<br />

function will be called.<br />

RETURN None.<br />

VxWorks 5.5/Tornado <strong>2.2</strong> <strong>BSP</strong> <strong>Rel</strong>. <strong>1.0</strong> <strong>for</strong> <strong>PPMC</strong>-<strong>275</strong> 5 - 147

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!