03.08.2013 Views

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 2 Introduction<br />

Figure 2-22. Selecting the library object in the CodeWarrior Eclipse IDE<br />

By selecting the button, add the library object file (consider the project setting<br />

of char data type representation). Considering the default settings, the path shown in<br />

Figure 2-23 shall be added.<br />

Figure 2-23. Adding the library object file to the CodeWarrior Eclipse IDE project<br />

In order to use the library functions, the library master header files must be included into<br />

the application source code. This is done using the pre-processor directive \#include<br />

".h", where can be gflib or gdflib or gmclib, depending on which library<br />

is to be employed.<br />

The master header files contain several additional header files that are needed <strong>for</strong> the<br />

<strong>Embedded</strong> <strong>Software</strong> <strong>and</strong> <strong>Motor</strong> <strong>Control</strong> <strong>Libraries</strong> <strong>for</strong> M<strong>PXR40xx</strong> integration into any<br />

user application. They include the "SWLIBS_Typedefs.h" header file which contains all<br />

general purpose data type definitions, the "mlib.h" header file containing all general math<br />

functions, the "SWLIBS_Defines.h" file containing common macro definitions <strong>and</strong> the<br />

"SWLIBS_MacroDisp.h" allowing the implementation based API call.<br />

Remember that by default there is no default implementation selected in the<br />

"SWLIBS_Config.h" thus the error message shall be displayed during the compilation<br />

requesting the default implementation selection.<br />

<strong>Embedded</strong> <strong>Software</strong> <strong>and</strong> <strong>Motor</strong> <strong>Control</strong> <strong>Libraries</strong> <strong>for</strong> <strong>PXR40xx</strong>, Rev. 1.0<br />

Freescale Semiconductor, Inc. 131

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

Saved successfully!

Ooh no, something went wrong!