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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

API Call Reference List of APIs<br />

System Resource Usage<br />

Restrictions<br />

External Interface<br />

System interrupt sources are connected to a GPP pin. Make sure<br />

the GPP pin is configured to act as interrupt.<br />

Interrupt acknowledgement is completed by the device driver that<br />

triggered the interrupt (not by the System Interrupt Controller).<br />

GPP pin descriptions Use the following macros as interrupt vectors intConnect routine<br />

(located in pmc<strong>275</strong>.h file)<br />

• CARRIER_INT0 Describes interrupt input from carrier card<br />

(GPP pin 6)<br />

• CARRIER_INT1 Describes interrupt input from carrier card<br />

(GPP pin 7)<br />

• WD_NMI Describe watchdog NMI interrupt (GPP pin 18)<br />

• PHY0_INT Describes Interrupt from Ethernet PHY0 (GPP pin<br />

12)<br />

• PHY0_INT Describes Interrupt from Ethernet PHY0 (GPP pin<br />

13)<br />

PCI_INTA Describes PCI interrupt A (GPP pin 27)<br />

PCI_INTB Describes PCI interrupt B (GPP pin 29)<br />

PCI_INTC Describes PCI interrupt C (GPP pin 16)<br />

PCI_INTD Describes PCI interrupt D (GPP pin 17)<br />

Driver's API This driver provides function pointers to VxWorks, thus interrupt<br />

control (Connect, Enable and Disable) is per<strong>for</strong>med using the<br />

VxWorks interface.<br />

STATUS gtIntCtrlInit ()<br />

DESCRIPTION This driver initializes the GPP Interrupt Controller and assigns the<br />

VxWorks interrupt control routines pointers to the system interrupt<br />

controller. This function is called in the system initialization<br />

routine sysHwInit2() of sysLib.c.<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 - 13

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

Saved successfully!

Ooh no, something went wrong!