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

INPUT Not applicable<br />

OUTPUT Not Applicable<br />

RETURNS Not Applicable<br />

To Test Per<strong>for</strong>mance of Memory<br />

int mem_perf(void)<br />

DESCRIPTION This program calculates the memory bandwidth (number of<br />

bytes/sec).<br />

INPUT Not Applicable<br />

OUTPUT It displays memory bandwidth.<br />

RETURN 0<br />

To Test Baud Rate Change<br />

void gtUartBaudRateChange(int portNum,int baudRate)<br />

This routine changes the Baud rate of the specified port number to<br />

the required baud rate.<br />

INPUT<br />

Int portNum 0 or 1 indicating MPSC0 or MPSC1<br />

Int<br />

baudrate<br />

OUTPUT Changes the baud rate .<br />

RETURNS Not Applicable<br />

The baudrate that it requires to be changed to. For example:9600,19200,38400<br />

etc<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 - 155

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

Saved successfully!

Ooh no, something went wrong!