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 />

void frcDmaIntCtrlInit(void)<br />

INPUT None.<br />

2. User ISR connecting. Here in<strong>for</strong>mation about user ISR and<br />

interrupt priority is gathered. Composed of vxDmaIntConnect()<br />

routine.<br />

3. Interrupt handler. Here an interrupt is being handle by the<br />

Interrupt Handlers (driver's ISR). Composed of vxDmaInt()<br />

This routines connects the drivers interrupt handlers, each to its<br />

corresponding bit in the MV main Interrupt Controller using the<br />

gtIntConnect() routine.<br />

OUTPUT The DMA Engine cause & mask register are initiated (set to zero).<br />

Driver's ISR are connected to the main cause register. Interrupts<br />

are unmasked.<br />

RETURN None.<br />

STATUS frcDmaIntConnect(DMA_CAUSE cause, VOIDFUNCPTR routine, int parameter, int<br />

prio)<br />

This routine connects a specified user ISR to a specified MV DMA<br />

interrupt cause (0x8c0 or 0x9c0).Each ISR handler has its own user<br />

ISR array. The connection is done by setting the desired routine<br />

and parameter in the corresponding cause array (i.e.<br />

dma0_1Array[ ])<br />

Locating the correct Array to make the connection. This is<br />

made according to the cause. DMA channel completion events<br />

has unique ISRs.<br />

Check <strong>for</strong> existing connection <strong>for</strong> the cause bit in the table.<br />

Connecting the user ISR by inserting the given parameters into<br />

an entry according to the user ISR given priority.<br />

INPUT<br />

cause DMA interrupt cause. See DMA_INT_CAUSE.<br />

routine User ISR.<br />

parameter User ISR parameter.<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 - 145

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

Saved successfully!

Ooh no, something went wrong!