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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
List of APIs API Call Reference<br />
External Interface APIs<br />
STATUS gtIntCntrlInit ()<br />
The external interface APIs are detailed here.<br />
DESCRIPTION As the Power PC architecture is restricted to only one external<br />
interrupt pin, and this driver handles all MV interrupts (High and<br />
Low), this driver makes use of the gtIntCpuSelect() handler.<br />
The driver connects to the CPU external interrupt vector (0x500)<br />
by using VxWorks excIntConnect() routine.<br />
INPUT Not Applicable<br />
OUTPUT Attaches the interrupt handler to the CPU external interrupt vector<br />
(by using VxWorks routine excIntConnect()).<br />
RETURN<br />
OK If the output was successful.<br />
ERROR If the output failed.<br />
STATUS gtIntConnect(GT_INT_CAUSE cause, VOIDFUNCPTR ISRptr, int ISRarg, int prio)<br />
DESCRIPTION Hooks a user's C routine to one of the GT interrupt causes specified<br />
by cause (use GT_INT_CAUSE enumerated type). The user's<br />
C routine is given by ISRptr and the ISRarg is an argument to this<br />
routine. This connection can be given a priority in case of simultaneous<br />
multiple interrupts. The highest priority is 0.<br />
INPUT<br />
GT_INT_CAUSE Cause Interrupt cause as defined in CAUSE data structure.<br />
VOIDFUNCPTR<br />
ISRptr<br />
Pointer to User ISR.<br />
int ISRarg A Parameter to the user ISR.<br />
int prio Interrupt priority<br />
OUTPUT Addresses the infrastructure of the driver and creates the connection<br />
according to its given priority.<br />
5 - 10 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>