21.07.2015 Views

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Calling a <strong>DSP</strong>LIB Function from C3.2 Calling a <strong>DSP</strong>LIB Function from CIn addition to installing the <strong>DSP</strong>LIB software, to include a <strong>DSP</strong>LIB function inyour code you have to:Include the dsplib.h include fileLink your code with the <strong>DSP</strong>LIB object code library, 55xdsp.lib.Use a correct linker command file describing the memory configurationavailable in your C55x board.For example, the following code contains a call to the recip16 and q15toflroutines in <strong>DSP</strong>LIB:#include ”dsplib.h”DATA x[3] = { 12398 , 23167, 564};DATA r[NX];DATA rexp[NX];float rf1[NX];float rf2[NX];void main(){short i;}for (i=0;i

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

Saved successfully!

Ooh no, something went wrong!