02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer'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.

VxWorks 5.5<br />

<strong>BSP</strong> Developer’s <strong>Guide</strong><br />

and MPC driver queue messages and deliver responses back to the appropriate<br />

device driver. Multiple devices can be controlled simultaneously since all<br />

messages contain source and destination addresses, as well as sequence numbers,<br />

etc., that keep track of message traffic.<br />

PCI, cPCI, and PMC<br />

Wind River provides drivers compliant with Rev 2.1 of the PCI Specifications.<br />

These drivers provide support for manual and automatic configuration and<br />

enumeration of devices. Also provided is a interrupt library module that handles<br />

the overloading of PCI interrupt sources. Refer to the reference entries for<br />

pciConfigLib, pciConfigShow, pciAutoCfg, and pciIntLib for more information.<br />

Wind River Technical Note #49 also contains information regarding PCI support.<br />

Busless<br />

When confronted with the task of porting VxWorks to a busless target, Wind River<br />

strongly recommends the use of a NetROM or In-Circuit Emulator. Emulator<br />

object file formats and operations are as varied as the vendors that sell them.<br />

Contact Wind River Systems for information on appropriate combinations.<br />

The initial goal should be to get serial line activity. Start small. Build a simple<br />

polled serial driver and build up from there. Take advantage of any LEDs that can<br />

be blinked as checkpoints in the code are passed. Use an oscilloscope to see that<br />

interrupts are occurring and being acknowledged correctly.<br />

See 3. Creating a New <strong>BSP</strong> for more information on strategies for dealing with the<br />

initial startup of a new <strong>BSP</strong>.<br />

4.4 Devices<br />

Devices should support both read and write access; it is both expensive and error<br />

prone for software to keep copies of registers or other data written to a device.<br />

Devices that have mandatory access timing requirements should not expect<br />

software to delay between accesses (error prone and non-portable), but should<br />

automatically suspend the next access.<br />

76

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

Saved successfully!

Ooh no, something went wrong!