Library Structure
2.3 A Note about C functions and IQMath
Most of the functions contained in the C28x FPU library are c-callable assembly. A few functions
may be written in C. These C functions are written using the IQMath pre-processor notation. This
allows these functions to be easily ported from fixed point to floating-point math. The included
IQMath header file, IQmathLib.h, controls whether the code is built for fixed point or floating-point.
You may choose to configure the file IQmathLib.h in the controlSUITE directory to generate floating-
point code. i.e. the MATH_TYPE in the file is defined as FLOAT_MATH.
For more information on the IQMath notation, please refer to C28x IQMath Library - A Virtual
Floating Point Engine (SPRC087) which can be downloaded from TI’s website.
Sep 10, 2012 8